ImageOptim / mozjpeg-rust

Safe Rust wrapper for the MozJPEG library
https://lib.rs/mozjpeg
Other
75 stars 19 forks source link

Allow detecting trailers (data after EOI marker) #34

Closed ns476 closed 1 year ago

ns476 commented 1 year ago

In the wake of CVE-2023-21036 it is useful to be able to detect whether an image has trailer e.g. to force a re-encode of these images.

Unfortunately mozjpeg doesn't provide an easy way of doing this, especially if the input is a file.

kornelski commented 1 year ago

This is now handled by supporting BufRead