Click Technology

Linux, Windows, Mac it's all good

Convert .JPGs to PDFs

September5

Sometimes you need to take a pic of a document say, and then put it into a pdf. Here’s how. In Linux.

You’ll need the awesome imagemagick package first. To install it, use..

sudo apt-get install imagemagick

Once that’s in, open a terminal window. Navigate to the folder you have the images in and then just run the command…

convert the_image.jpg the_document.pdf

Got multiple JPGs and need to squeeze all the images into the same pdf?

convert *.jpg the_document.pdf

Need to reduce the images to 1024 pixels across by whatever down and strip out meta data in the JPG files first though? Fer security and confidentiality?

mogrify -strip -resize 1024x *.JPG

“Nice one centurion, Like it.”

posted under Linux Tips | No Comments »

This is my website for short blog posts and interesting materials that are noteworthy or have some handy-tip value.