Tag Archives: jpg

Creating PDF files from images

Creating PDF files from images is really easy to do with the ImageMagick suite installed. This software suite can handle over 100 different image formats and is essential to have if you manipulate large batches of images. It has all sorts of useful functions; translate, flip, mirror, rotate, scale,  shear and transform images, adjust image colors, apply various special  effects, or draw text, lines, polygons, ellipses and Bézier curves.

 

  • Install imagemagick if it’s not present:
sudo apt-get install imagemagick

 

  • Convert some files into a PDF file:
convert file1.jpg file2.jpg document.pdf

or

convert *.jpg document.pdf

 

Posted in Linux | Tagged , , , , , , | Leave a comment

Restore image timestamp

I’m taking lots of pictures with my digital camera. I often batch process them and I have noticed that some of my older images have gotten their timestamp updated at the time  when this happened. As luck has it, the original timestamp is stored in the EXIF data of the picture, and restoring it is simple.

 

Begin by installing the jhead package:

sudo apt-get install jhead

 

To show the EXIF data of an image:

jhead image.jpg

 

To reset the original timestamp stored in the EXIF data of an image:

jhead -ft image.jpg

 

Posted in Linux | Tagged , , , , , , | Leave a comment