mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 03:07:25 +01:00
Update image decoder to add JPEG XL support (#5512)
This commit is contained in:
parent
07e5525c74
commit
49cdcc644c
@ -225,7 +225,7 @@ dependencies {
|
|||||||
implementation("com.github.tachiyomiorg:subsampling-scale-image-view:846abe0") {
|
implementation("com.github.tachiyomiorg:subsampling-scale-image-view:846abe0") {
|
||||||
exclude(module = "image-decoder")
|
exclude(module = "image-decoder")
|
||||||
}
|
}
|
||||||
implementation("com.github.tachiyomiorg:image-decoder:0e91111")
|
implementation("com.github.tachiyomiorg:image-decoder:7481a4a")
|
||||||
|
|
||||||
// Logging
|
// Logging
|
||||||
implementation("com.jakewharton.timber:timber:4.7.1")
|
implementation("com.jakewharton.timber:timber:4.7.1")
|
||||||
|
@ -47,6 +47,7 @@ object ImageUtil {
|
|||||||
Format.Gif -> ImageType.GIF
|
Format.Gif -> ImageType.GIF
|
||||||
Format.Heif -> ImageType.HEIF
|
Format.Heif -> ImageType.HEIF
|
||||||
Format.Jpeg -> ImageType.JPEG
|
Format.Jpeg -> ImageType.JPEG
|
||||||
|
Format.Jxl -> ImageType.JXL
|
||||||
Format.Png -> ImageType.PNG
|
Format.Png -> ImageType.PNG
|
||||||
Format.Webp -> ImageType.WEBP
|
Format.Webp -> ImageType.WEBP
|
||||||
else -> null
|
else -> null
|
||||||
@ -93,6 +94,7 @@ object ImageUtil {
|
|||||||
GIF("image/gif", "gif"),
|
GIF("image/gif", "gif"),
|
||||||
HEIF("image/heif", "heif"),
|
HEIF("image/heif", "heif"),
|
||||||
JPEG("image/jpeg", "jpg"),
|
JPEG("image/jpeg", "jpg"),
|
||||||
|
JXL("image/jxl", "jxl"),
|
||||||
PNG("image/png", "png"),
|
PNG("image/png", "png"),
|
||||||
WEBP("image/webp", "webp"),
|
WEBP("image/webp", "webp"),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user