mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Update image decoder with better AVIF support
This commit is contained in:
parent
c3fb5af3fc
commit
ef937f277e
2 changed files with 1 additions and 2 deletions
|
@ -219,7 +219,7 @@ dependencies {
|
|||
implementation("com.github.tachiyomiorg:subsampling-scale-image-view:846abe0") {
|
||||
exclude(module = "image-decoder")
|
||||
}
|
||||
implementation("com.github.tachiyomiorg:image-decoder:ac5f65c")
|
||||
implementation("com.github.tachiyomiorg:image-decoder:0e91111")
|
||||
|
||||
// Logging
|
||||
implementation("com.jakewharton.timber:timber:4.7.1")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue