in reply to Re: permagick jpg compression
in thread permagick jpg compression

nothing

I have cut out all the code between the read and write:
$background->Read("$filename"); $background->Write(filename=>"$newfilename", quality=>100);
whatever the quality setting is set at, or if it is not there at all, I get the same result - the image has gone from 95k to 13k and is clearly less sharp and detailed.

Replies are listed 'Best First'.
Re^3: permagick jpg compression
by rhesa (Vicar) on Mar 19, 2007 at 21:36 UTC
    What's your version of ImageMagick?

    I can't confirm such a big reduction in size. I tried exactly your code on an image of 704104 bytes, and the output was 704085 bytes. The quality reduction wasn't appreciable either.

    FWIW, we use ImageMagick 6.1.5 compiled from source, with the latest libjpeg.

      the package is called PerlMagick-6.24
      (it is on windows if that makes any difference)
        I don't have any Windows machines at my disposal, so I can't really help you if it's a factor. I do suspect your installed version is broken though, so I'd suggest installing a newer version first, to see if that fixes it.

        You can find version 6.3.3 on the ImageMagick website.