image-rs / image-png

PNG decoding and encoding library in pure Rust
https://docs.rs/png
Apache License 2.0
357 stars 141 forks source link

Provide multi-theaded PNG encoding option via mtpng crate #479

Open Shnatsel opened 4 years ago

Shnatsel commented 4 years ago

https://github.com/brion/mtpng provides a multi-threaded PNG encoder that is competitive with libpng even in single-threaded configurations. It would be nice to be able to use it from image.

Since multi-threading "in the background" without user control can be undesirable and encoding ratio may suffer for very small images, it's probably best to provide it as a separate encoder type so that the API client would have full control over what's happening.

Shnatsel commented 2 weeks ago

This was attempted in #478