-
Notifications
You must be signed in to change notification settings - Fork 618
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
Error: The encoder or decoder for Jpeg does not support the color type Rgba8
#2211
Comments
The JPEG file format doesn't support alpha, but your image has an alpha channel. You can either remove the alpha channel (via |
Otherwise an error "The encoder or decoder for Jpeg does not support the color type `Rgba8`" is returned if image has an alpha channel. This is caused by the recent change of JPEG encoder in `image` crate: <image-rs/image#2211>
Otherwise an error "The encoder or decoder for Jpeg does not support the color type `Rgba8`" is returned if image has an alpha channel. This is caused by the recent change of JPEG encoder in `image` crate: <image-rs/image#2211>
Otherwise an error "The encoder or decoder for Jpeg does not support the color type `Rgba8`" is returned if image has an alpha channel. This is caused by the recent change of JPEG encoder in `image` crate: <image-rs/image#2211>
Otherwise an error "The encoder or decoder for Jpeg does not support the color type `Rgba8`" is returned if image has an alpha channel. This is caused by the recent change of JPEG encoder in `image` crate: <image-rs/image#2211>
Otherwise an error "The encoder or decoder for Jpeg does not support the color type `Rgba8`" is returned if image has an alpha channel. This is caused by the recent change of JPEG encoder in `image` crate: <image-rs/image#2211>
does anybody know how to handle this when opening an image file? there are crazy maniacs who has rgba8 in JPEG image header |
@hwkim1127 That sounds like a different problem. You may want to open a dedicated issue and include an example failing image |
I apologize for previous comment. my code had an error where I was saving png to jpg directly without |
I want to use the DynamicImage.thumbnail method but I got the error
Error: The encoder or decoder for Jpeg does not support the color type Rgba8".
Here is an example of the code below:
My Cargo.toml
The text was updated successfully, but these errors were encountered: