How to get the best print quality from a TIF to JPG conversi

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
cesarcesar

How to get the best print quality from a TIF to JPG conversi

Post by cesarcesar »

I am working with a TIF to JPG conversion that will result in the JPG being printed from a web page. My issue is the final JPG image prints VERY blurry.

The TIF file that has the following settings,

*plat.tif*
Pixel Dimensions - 9600x7200
Document Size - 24x18 inches
Resolution - 400 px/in
File Size - 236 KB

When using the command

Code: Select all

exec("convert plat.tif -density 300x300 -quality 100 plat.jpg");
the code takes 63 seconds to run. Is this normal?

Then i run

Code: Select all

exec("convert plat.jpg -resize 792x612 -quality 100 plat_resize.jpg");
to reduce the JPG to the PX size i need. the code takes 73 seconds to run. Is this normal?

When plat_resize.jpg is viewed in Firefox using a standard <img src> tag the image looks not as good as the original TIF, but "OK". Though, my final output is to print the image and this is where my main problem is. The printed image looks blurry and unreadable. How can i get it to look as good or as close to the original TIF as possible?

Here are the files being used and generated.

http://www.zellco.com/imagemagick/plat.tif
http://www.zellco.com/imagemagick/plat.jpg
http://www.zellco.com/imagemagick/plat_resize.jpg
http://www.zellco.com/imagemagick/plat_resized.html (image in page ready to print.)

Thank much for all the replies to come.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to get the best print quality from a TIF to JPG conversi

Post by Bonzo »

You are saving to a jpg twice so its using the jpg compression twice; if you are going to do 2 converts you need to save the first as a png or similar.

I would have thought you could do it all in one convert:

Code: Select all

exec("convert plat.tif -resize 792x612 -density 300x300 -quality 100 plat.jpg");
cesarcesar

Re: How to get the best print quality from a TIF to JPG conversi

Post by cesarcesar »

yes you are correct that the image will blur more each time the conversion is done.

i had separated the calls to time the scripts. before timing them, i had it all in one script as you have shown and the blur was/is still NOT acceptable.

You can find an updated JPG file using the method Bonzo suggests at http://www.zellco.com/imagemagick/plat_bonzo.html.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to get the best print quality from a TIF to JPG conversi

Post by anthony »

JPG is of course blur anyway. Particularly for sharp edges.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply