You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUST_BACKTRACE=1 ./target/debug/image-rs-test out.avif
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Decoding(DecodingError { format: Exact(Avif), underlying: Some(Error(-11)) })', src/main.rs:8:34
stack backtrace:
0: rust_begin_unwind
at /rustc/af3e06f1bf4ca49407562b1b84744e27905bea98/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/af3e06f1bf4ca49407562b1b84744e27905bea98/library/core/src/panicking.rs:64:14
2: core::result::unwrap_failed
at /rustc/af3e06f1bf4ca49407562b1b84744e27905bea98/library/core/src/result.rs:1790:5
3: core::result::Result<T,E>::unwrap
at /rustc/af3e06f1bf4ca49407562b1b84744e27905bea98/library/core/src/result.rs:1112:23
4: image_rs_test::main
at ./src/main.rs:8:15
5: core::ops::function::FnOnce::call_once
at /rustc/af3e06f1bf4ca49407562b1b84744e27905bea98/library/core/src/ops/function.rs:507:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Reproduction steps
Provide source code, a repository link, or steps
use image::GenericImageView;use std::{env, io, fs};fnmain(){// Use the open function to load an image from a Path.// `open` returns a `DynamicImage` on success.let input = env::args().nth(1).unwrap();let img = image::open(input).unwrap();// The dimensions method returns the images width and height.println!("dimensions {:?}", img.dimensions());// The color method returns the image's `ColorType`.println!("{:?}", img.color());// Write the contents of this image to the Writer in PNG format.
img.save("test.png").unwrap();}
avif out.avif made with ffmpeg -i ~\Pictures\E137mwnVgAEogCB.jpg -c:v libsvtav1 out.avif
given code below
Expected
decode and convert to png
Actual behaviour
Reproduction steps
Provide source code, a repository link, or steps
avif out.avif made with
ffmpeg -i ~\Pictures\E137mwnVgAEogCB.jpg -c:v libsvtav1 out.avif
image-rs-test.zip
https://slow.pics/c/e3P3d1i5
Netflix-chimera is a seperate issue but one I tested anyways, the zip and slowpics contain the same images
The text was updated successfully, but these errors were encountered: