in reply to Setting png compression level in Imager

Looking at Imager, I searched for "PNG". A few matches down, I found PNG files - Imager::Files, "PNG" in Imager::Files. I see some mentions there of "compressed"; there might be something in that section to help you.... or there might not. If not, you might be able to find something in the source code. For future reference, official documentation and source code is probably a better first step then trying "every variation or combination I could think of"

  • Comment on Re: Setting png compression level in Imager

Replies are listed 'Best First'.
Re^2: Setting png compression level in Imager
by Anonymous Monk on May 11, 2018 at 23:58 UTC

    Ok thanks, and I should have mentioned that I did search the documentation too. The reference to compression you mention is for compressing embedded metadata, not the actual image. According to the png specs, there are 10 levels of image compression, 0-9, and I want to be able to explicitly set that rather than accepting whatever, apparently undocumented, default is set in the module.