Kunaljain's Weblog

January 7, 2009

Converting .tif images to .jpg

To convert .tif images to .jpg i use imageMagic which i downloaded from http://www.imagemagick.org/script/download.php
To convert .tif images to .jpg you need to install certain library files which will be used during the conversion process

For jpg i downloaded libjpeg-6b.tar.gz. you can download it from http://www.imagemagick.org/download/delegates/

To install it follow the following steps

shell> cd /usr/local
shell> tar -zxvf libjpeg-6b.tar.gz
shell> ln -s libjpeg-6b libjpeg
shell> cd libjpeg
shell> ./configure; make; make install;

This will install the required jpg library files into your system

Then i downloaded tiff-3.8.2.tar.gz from the same repository mentioned above
To install it follow the following steps

shell> cd /usr/local
shell> tar -zxvf tiff-3.8.2.tar.gz
shell> ln -s tiff-3.8.2.tar.gz tiff
shell> cd tiff
shell> ./configure; make; make install;

Then finally i Install imageMagic with the following steps

shell> cd /usr/local
shell> tar -zxvf ImageMagic.tar.gz
shell> ln -s ImageMagick-6.4.8-3 imageMagic
shell> cd imageMagic
shell> ./configure; make; make install;

Now you are ready to convert .tif files to .jpg simply type the following command

shell> convert fileName.tif newFileName.jpg

you can use convert help to find other parameters to pass with the convert command regarding quality and path to write files and others……

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

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

Create a free website or blog at WordPress.com.

%d bloggers like this: