Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Imagemagick - Best print quality from a TIF to JPG conversion.

    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:
    exec("convert plat.tif -density 300x300 -quality 100 plat.jpg");
    the code takes 63 seconds to run. Is this normal?

    Then i run
    Code:
    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.

  • #2
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Quote Originally Posted by cesarcesar View Post
    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
    A TIFF that size should be about 197 MB, not 236 KB.
    Leonard Whistler

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts
    it was sent to me via email at 236Kb. when opened and re-saved in photoshop, it resizes to 10M

  • #4
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Quote Originally Posted by cesarcesar View Post
    it was sent to me via email at 236Kb. when opened and re-saved in photoshop, it resizes to 10M
    I would create a TIFF file in Photoshop with these specs:

    • Pixel Dimensions - 9600x7200
    • Document Size - 24x18 inches
    • Resolution - 400 px/in


    Save it as an uncompresed TIFF and run it through your script, you will see that the TIFF will be about 197 MB. I think the PHP script can't process compressed TIFF's.
    Leonard Whistler

  • #5
    Regular Coder
    Join Date
    Apr 2007
    Posts
    144
    Thanks
    5
    Thanked 0 Times in 0 Posts
    my scripts are getting processed.. just blurry.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •