How to merge multiple jpg images to a pdf on Linux?

Posted on

I have multiple jpg images as files like 001.jpg, 002.jpg …

How to merge multiple jpg images to a pdf on Linux?

convert is your good friend:

convert *.jpg output.pdf

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

One comment

  1. Note that convert will read the uncompressed input files into memory before converting to pdf, so if you have a lot of files, you might run out of memory.
    An alternative approach is first convert each file to pdf, and then combine the pdfs into one.

Leave a Reply

Your email address will not be published. Required fields are marked *