Update image decoder with better AVIF support

(cherry picked from commit ef937f277e747dceba7683f37e07e0615e738766)
This commit is contained in:
inorichi 2021-06-22 12:58:35 +02:00 committed by Jobobby04
parent a59168f8b6
commit fe51ad5d4b
2 changed files with 1 additions and 2 deletions

View File

@ -210,7 +210,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:ac5f65c") implementation("com.github.tachiyomiorg:image-decoder:0e91111")
// Logging // Logging
implementation("com.jakewharton.timber:timber:4.7.1") implementation("com.jakewharton.timber:timber:4.7.1")

View File

@ -45,7 +45,6 @@ object ImageUtil {
fun findImageType(stream: InputStream): ImageType? { fun findImageType(stream: InputStream): ImageType? {
try { try {
return when (getImageType(stream)?.format) { return when (getImageType(stream)?.format) {
// TODO: image-decoder library currently doesn't actually detect AVIF yet
Format.Avif -> ImageType.AVIF Format.Avif -> ImageType.AVIF
Format.Gif -> ImageType.GIF Format.Gif -> ImageType.GIF
Format.Heif -> ImageType.HEIF Format.Heif -> ImageType.HEIF