Compress a PNG File

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
Seij

Compress a PNG File

Post by Seij »

Hello there,

I currently try to write an image to a png file with compression. But it seems not to compress the image after all. The original filesize of the image is 132,2 kb and when I try to save it as a png file its filesize grows to 512,5 kb.
I use the following statement to save the image: $image->Write( filename => 'png:example.png', compression => 'none', quality => 95 );
I also tried to set compression to 'JPEG2000' and tried with some other values for quality but I doesn't go below 512 kb

What I'm doing wrong?

Greets
Seij
Post Reply