image
image copied to clipboard
Expose more detailed PNG compression options
The png crate v0.18.x (currently in beta) added finer-grained compression controls:
- set_compression() for a high-level, easy to use compression control
- set_deflate_compression for more in-depth DEFLATE control
- set_filter for controlling PNG filters
APIs 2 and 3 need to be exposed in image once png crate v0.18.0 ships a stable release.
I think that for 2, the wrapper struct in image should directly mirror the one in png. But if that feels too cumbersome for image, simplifying the DEFLATE compression level down to a level for 0 to 9 would be acceptable.