Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mrusme opened this issue May 22, 2022 · 3 comments

Comments

@mrusme
Copy link

mrusme commented May 22, 2022

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
@mxdpeep
Copy link

mxdpeep commented Dec 4, 2022

what about the image file?

@mrusme
Copy link
Author

mrusme commented Dec 28, 2022

image.jpg.zip

@mrusme
Copy link
Author

mrusme commented Dec 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants