Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Support programmatically several images sources #727

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zicrox
Copy link

@zicrox zicrox commented May 17, 2018

In order to create a pdf with several pages from images (or other formats that allow pages), I need to use gm final command like this: "gm convert image01.jpg image02.jpg -quality 100 test.pdf".

So I add a way to add several "sources" to the main "gm()" function the "source" parameter now can be an array of paths and this allows "programmatically" set several sources, ex. read folder tree and set the paths to "gm()".

This is possible to achieve with chaining ".in()" custom argument or with spread operator ex. ".in(...[])" but it is less practical.

I added two user cases more in README.md in "Basic Usage" section.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant