mdsteele / rust-icns

Rust library for encoding/decoding Apple Icon Image (.icns) files
MIT License
25 stars 10 forks source link

Pass through PNG data unchanged #3

Open adetaylor opened 4 years ago

adetaylor commented 4 years ago

I'm told that some tools carefully optimize PNG data (optipng, advpng). At the moment, this library always decodes and re-encodes PNGs before inserting the data into the icns file, which loses those optimizations.

I had a go at this here: https://github.com/mdsteele/rust-icns/compare/master...adetaylor:png-passthrough-unchanged

but it's not product-quality, for several reasons:

I'm unlikely to get around to tidying this up enough to upstream, but I thought I'd post this here in case anyone else encounters the same issue and wants to try.