Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone know how to set the compression level for writing png files in Imager, or if it's even possible? So far Super Search and Google have been no help, so I tried many guesses of possible argument names, but no joy. All I've learned is that Imager doesn't complain about invalid args. I would really prefer not to use a different image module as it would involve a substantial rewrite of the program. Thanks for any help with this.
$img->write( file => $outfile, type => 'png', compression => 0 ); $img->write( file => $outfile, type => 'png', compress => 0 ); $img->write( file => $outfile, type => 'png', level => 0 ); $img->write( file => $outfile, type => 'png', quality => 0 ); ... I've tried these and many more, including every variation or combi +nation I could think of
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Setting png compression level in Imager
by haukex (Archbishop) on May 12, 2018 at 09:05 UTC | |
Re: Setting png compression level in Imager -- GD
by Discipulus (Canon) on May 12, 2018 at 12:52 UTC | |
Re: Setting png compression level in Imager
by Your Mother (Archbishop) on May 12, 2018 at 05:10 UTC | |
by Anonymous Monk on May 13, 2018 at 05:53 UTC | |
Re: Setting png compression level in Imager
by vr (Curate) on May 13, 2018 at 11:45 UTC | |
Re: Setting png compression level in Imager
by pryrt (Abbot) on May 11, 2018 at 23:27 UTC | |
by Anonymous Monk on May 11, 2018 at 23:58 UTC | |
Re: Setting png compression level in Imager
by Anonymous Monk on May 13, 2018 at 06:06 UTC | |
by Anonymous Monk on May 13, 2018 at 09:20 UTC |
Back to
Seekers of Perl Wisdom