Batch convert multiple JPGs to a single PDF document

This is nothing new or especially exciting. However I use this tool a lot but not frequently enough to remember from one time to another how to do it. Here is a short note on how to complete the following task efficiently.

Say you have a bunch of images and want to create a single PDF document.  In my case I have a notebook that I want to  digitalize using nothing but a camera (with a tripod) and the imagemagick software suite.

Beware, the success of this process depends on the total size of all your pictures you want to transform. Here I have 60 images, trying to convert the original images having 1.5MB each I would end up freezing my dual-core system. Maybe waiting enough time I would end up with a 80MB PDF document. Therefore resize your images to the minimum quality necessary or convert them to black and white images. A convenient tool for this job is Phatch.

  1. You will need imagemagick installed, type:
  2. sudo apt-get install imagemagick
  3. Put all your images into a single folder
  4. In a terminal window navigate to the image folder and type:
  5. convert *.jpg output.pdf
  6. Done
Advertisements
This entry was posted in Planet, Ubuntu and tagged , , , , , , , , , , . Bookmark the permalink.

3 Responses to Batch convert multiple JPGs to a single PDF document

  1. Ephram says:

    convert: unable to open image `*.jpg’: @ error/blob.c/OpenBlob/2587.
    convert: missing an image filename `output.pdf’ @ error/convert.c/ConvertImageCommand/3011

    doesn’t work

  2. manuq says:

    Wouldn’t be nice to have an action in Phatch to “Save to single PDF”? I hate to recommend the command line to artists.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s