aboutsummaryrefslogtreecommitdiff
path: root/transcoder
diff options
context:
space:
mode:
Diffstat (limited to 'transcoder')
-rw-r--r--transcoder/Cargo.toml1
-rw-r--r--transcoder/src/image.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/transcoder/Cargo.toml b/transcoder/Cargo.toml
index 36f44af..9b533a6 100644
--- a/transcoder/Cargo.toml
+++ b/transcoder/Cargo.toml
@@ -8,6 +8,7 @@ jellycommon = { path = "../common" }
jellybase = { path = "../base" }
log = "0.4.20"
image = "0.24.7"
+# image = { version = "0.24.7", features = ["avif-decoder"] }
anyhow = "1.0.75"
rgb = "0.8.36"
rav1e = { version = "0.6.6", default-features = false, features = [
diff --git a/transcoder/src/image.rs b/transcoder/src/image.rs
index 273d6b4..c28ef2b 100644
--- a/transcoder/src/image.rs
+++ b/transcoder/src/image.rs
@@ -18,7 +18,8 @@ pub fn transcode(
let path = cache_file(&[
original_path.as_os_str().to_str().unwrap(),
&format!("{width} {quality} {speed}"),
- ]);
+ ])
+ .path();
if !path.exists() {
info!("encoding {path:?} (speed={speed}, quality={quality}, width={width})");
let reader = image::io::Reader::new(BufReader::new(File::open(original_path)?))