1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-07-30 11:25:54 +02:00

Update image decoder with better AVIF support

This commit is contained in:
inorichi
2021-06-22 12:58:35 +02:00
parent c3fb5af3fc
commit ef937f277e
2 changed files with 1 additions and 2 deletions
app
build.gradle.kts
src
main
java
eu
kanade
tachiyomi
util

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