-
Notifications
You must be signed in to change notification settings - Fork 619
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
Benchmark error: UnsupportedError { format: Exact(Jpeg), kind: Color(Rgba8) } #2227
Comments
The JPEG format cannot store an alpha channel. See #2211 Looks like the benchmark needs to be updated to strip the alpha channel or skip those images |
I am also getting this error when upgrading from 0.24.6 to 0.25.2 on the same image file. |
PR welcome! |
fn main() {
let img = image::open("in.jpg").unwrap();
println!("Loaded");
let buffer = image::imageops::resize(&img, 500, 500, image::imageops::FilterType::Lanczos3);
buffer.save("out.jpg").unwrap(); // <- crashes in .save()
} So this code works with 0.24.6, but crashes with 0.25.2. Not sure if it happens for every image, but I tried a handful and it crashes everytime. |
That's annoying but expected. Calling |
+1, any update? |
Status is the same as it was five days ago:
|
Hi!
I observed an error during the library benchmarking.
Expected
The benchmark completes successfully with the documented command.
Actual behaviour
The benchmark fails with the following error:
Reproduction steps
cargo +nightly bench --features=benchmarks
encode-jpeg/zero-Rgba8-rawvec/64
the benchmark will startEnvironment info:
image
version:main
branch,5013041c830c2f5aa189cccc7f8902ce22e283c7
commitThe text was updated successfully, but these errors were encountered: