diff --git a/Cargo.toml b/Cargo.toml index 3944661a9d..68b2c90587 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ jpeg = { package = "jpeg-decoder", version = "0.1.22", default-features = false, png = { version = "0.16.5", optional = true } scoped_threadpool = { version = "0.1", optional = true } tiff = { version = "0.6.0", optional = true } -ravif = { version = "0.7.0", optional = true } +ravif = { version = "0.8.0", optional = true } rgb = { version = "0.8.25", optional = true } mp4parse = { version = "0.11.5", optional = true } dav1d = { version = "0.6.0", optional = true } diff --git a/src/codecs/avif/encoder.rs b/src/codecs/avif/encoder.rs index 1d103638d5..2e0f3e2206 100644 --- a/src/codecs/avif/encoder.rs +++ b/src/codecs/avif/encoder.rs @@ -72,8 +72,8 @@ impl AvifEncoder { inner: w, fallback: vec![], config: Config { - quality, - alpha_quality: quality, + quality: f32::from(quality), + alpha_quality: f32::from(quality), speed, premultiplied_alpha: false, color_space: ravif::ColorSpace::RGB,