imager
imager copied to clipboard
thread 'main' panicked at 'assertion failed: picture.uv_stride as u32 == width / 2'
Sometimes I get the following error message when batch compressing jpg files:
thread 'main' panicked at 'assertion failed: picture.uv_stride as u32 == width / 2', ~/.cargo/registry/src/github.com-1ecc6299db9ec823/imager-0.3.2/src/data.rs:276:9
what about the image file?
Seems to be a resolution issue. When the resolution is dividable by 2 it works. So maybe round::floor(width / 2)
might help here?