imager icon indicating copy to clipboard operation
imager copied to clipboard

thread 'main' panicked at 'assertion failed: picture.uv_stride as u32 == width / 2'

Open mrusme opened this issue 2 years ago • 3 comments

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

mrusme avatar May 22 '22 18:05 mrusme

what about the image file?

mxdpeep avatar Dec 04 '22 16:12 mxdpeep

image.jpg.zip

mrusme avatar Dec 28 '22 04:12 mrusme

Seems to be a resolution issue. When the resolution is dividable by 2 it works. So maybe round::floor(width / 2) might help here?

mrusme avatar Dec 28 '22 04:12 mrusme