bradcathey has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks,

Hopefully this is not OT, but I'm successfully using GD to upload, optimize and thumbnail JPEG images. However, if I optimize the same image in Photoshop and upload it independent of GD, the image is decidely better quality, regardless of the settings in GD.

I've Googled, Super Searched, CPANed and find no alternatives but ImageMagick. However, the caveats for using it scare me, besides my web host says they can't support some of the libraries necessary to run it, blah, blah.

So, before I give up and accept the lesser quality, any other options?

Thanks in advance.

  • Comment on Higher quality image optimization when uploading

Replies are listed 'Best First'.
Re: Higher quality image optimization when uploading
by Albannach (Monsignor) on Oct 03, 2003 at 15:31 UTC
    I'm not entirely sure what you mean by 'optimize', but perhaps you have an older version of GD, which only supported 8-bit colour in JPEGs? If your version is 2 or newer, you should be able to use GD::Image->trueColor(1); (or there are other ways to do this - consult the POD).

    --
    I'd like to be able to assign to an luser

      Thanks Albannach for your comments. I was aware of the short comings of older versions, and I am using a 2.+ version with trueColor set to 1. By "optimization," I simply mean the degree of compression, i.e., lossy.