From 49cdcc644c974a8b8bee4977def4af6d28d0bded Mon Sep 17 00:00:00 2001 From: w Date: Wed, 7 Jul 2021 15:11:20 -0700 Subject: [PATCH] Update image decoder to add JPEG XL support (#5512) --- app/build.gradle.kts | 2 +- app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 84b20e83e..4eb9f6f3e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -225,7 +225,7 @@ dependencies { implementation("com.github.tachiyomiorg:subsampling-scale-image-view:846abe0") { exclude(module = "image-decoder") } - implementation("com.github.tachiyomiorg:image-decoder:0e91111") + implementation("com.github.tachiyomiorg:image-decoder:7481a4a") // Logging implementation("com.jakewharton.timber:timber:4.7.1") diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt b/app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt index 8c4ed31f0..998d1f71b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/system/ImageUtil.kt @@ -47,6 +47,7 @@ object ImageUtil { Format.Gif -> ImageType.GIF Format.Heif -> ImageType.HEIF Format.Jpeg -> ImageType.JPEG + Format.Jxl -> ImageType.JXL Format.Png -> ImageType.PNG Format.Webp -> ImageType.WEBP else -> null @@ -93,6 +94,7 @@ object ImageUtil { GIF("image/gif", "gif"), HEIF("image/heif", "heif"), JPEG("image/jpeg", "jpg"), + JXL("image/jxl", "jxl"), PNG("image/png", "png"), WEBP("image/webp", "webp"), }