Imagemagick - Best print quality from a TIF to JPG conversio

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

Imagemagick - Best print quality from a TIF to JPG conversio

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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You have an insanely sized tiff. I wouldn't expect it to be fast to convert.
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

Post by cesarcesar »

i agree. unfortunately the size is not up to me... i am going to school my client on more appropriate sizes. Though i believe the image is given to them as is.
josa
Forum Commoner
Posts: 75
Joined: Mon Jun 24, 2002 4:58 am
Location: Sweden

Post by josa »

If you try to print the resized image in the original size (24 x 18 inches), the resolution would be as low as 33 pixels/inch. I would expect that to look very blurry.

/josa
cesarcesar
Forum Contributor
Posts: 111
Joined: Mon Oct 18, 2004 3:28 pm

Post by cesarcesar »

josa wrote:If you try to print the resized image in the original size (24 x 18 inches), the resolution would be as low as 33 pixels/inch. I would expect that to look very blurry.

/josa
Very good observation.
Post Reply