Merging a folder of images into single PDF file

Imagine you have a folder with many images (scanned document or photo album) and you want to generate single file containing all of them and send it by email for example. This can be achieved using convert tool from imagemagic suite. You need only one command, executed in the folder containing the images (assuming all images are jpg format):

convert -compress *.jpg out.pdf

In you you want to specify the exact sequence of pages when files are not properly named use:

convert -compress 1.jpg second.jpg page3.jpg out.pdf


No comments yet

Back to articles list

This page was last modified on 2018-12-09 01:29:52