mozjpeg-rust
mozjpeg-rust copied to clipboard
Safe Rust wrapper for the MozJPEG library
I want to optionally embed mozjpeg as an alternative to calling out to `jpegtran`. It would be great to have an example for doing the equivalent of `jpegtran -optimize` with...
Apologies if this is known. Decoding doesn't report decode failures. The library internally prints: `Corrupt JPEG data: premature end of data segment` But this doesn't appear to be available to...
As someone who isn't familiar with libjpeg, it would be nice to have some encoding examples as well as some better documentation on the related functions.
`Compress::set_quality` calls `jpeg_set_quality` with `force_baseline` parameter as `FALSE`, which is not an issue as long as a decoder capable of reading non-baseline JPEG, like the IJG decoder, is used. For...