Page 1 of 1

How to convert tiff to a single jpg???

Posted: 2011-10-26T20:58:29-07:00
by YouPict.Ru
Hi!

Converting the tiff to format jpg generated a lot of files jpg:

Code: Select all

use Image::Magick;          
$image = Image::Magick->new;
$image->Read("test.tif");
$image->Set (compression=>"JPEG", quality=>90);
$image->Write ("test.jpg");       
Resut: test.tif -> test-0.jpg, test-1.jpg and etc.

How to convert tiff to a single jpg???

Re: How to convert tiff to a single jpg???

Posted: 2011-10-27T00:34:22-07:00
by anthony
You can convert a multi-image TIFF into a single JPEG. JPEG can't hold multiple images.

You can read ONE image from the tiff , just read "test.tiff[0]" instead.

See IM Examples, File Handling, Read Modifiers
http://www.imagemagick.org/Usage/files/#read_mods

Re: How to convert tiff to a single jpg???

Posted: 2011-10-27T03:12:58-07:00
by YouPict.Ru
many thanks!