Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant