Skip to content

Instantly share code, notes, and snippets.

@hyjk2000
Last active April 12, 2021 07:45
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