Skip to content

Instantly share code, notes, and snippets.

@hyjk2000
Last active April 12, 2021 07:45
Show Gist options
  • Save hyjk2000/b3da9009c604a5b638563bf0417e62c2 to your computer and use it in GitHub Desktop.
Save hyjk2000/b3da9009c604a5b638563bf0417e62c2 to your computer and use it in GitHub Desktop.
Combine images into PDF with Imagemagick

Combine images into PDF with Imagemagick

Prerequisite

Steps

  1. Select images for combining in Finder
  2. Run the following command
convert $(pfs | tr '\n' ' ') output.pdf

Tips

  • The images will be combined into the PDF in the same order as they are selected
  • Resize/compress images before combining to reduce the size of the output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment