From c9ed0c287332b1867000e4cdd7433046dade2fa5 Mon Sep 17 00:00:00 2001 From: 5225225 <5225225@mailbox.org> Date: Sat, 2 Oct 2021 18:01:28 +0100 Subject: [PATCH] Bump ravif version from 0.7.0 to 0.8.0 --- Cargo.toml | 2 +- src/codecs/avif/encoder.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,