[Komga] add support for avif/heif image types (#16217)

feat(komga): add support for avif/heif image types
This commit is contained in:
Gauthier 2023-04-29 09:52:46 +08:00 committed by GitHub
parent b1fc79fe9f
commit f055c60e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
## 1.4.47
Minimum Komga version required: `0.151.0`
### Feat
* add support for AVIF and HEIF image types
## 1.4.46
Minimum Komga version required: `0.151.0`

View File

@ -6,7 +6,7 @@ ext {
extName = 'Komga'
pkgNameSuffix = 'all.komga'
extClass = '.KomgaFactory'
extVersionCode = 46
extVersionCode = 47
}
dependencies {

View File

@ -628,7 +628,7 @@ open class Komga(private val suffix: String = "") : ConfigurableSource, Unmetere
private const val PREF_PASSWORD = "Password"
private const val PASSWORD_DEFAULT = ""
private val supportedImageTypes = listOf("image/jpeg", "image/png", "image/gif", "image/webp", "image/jxl")
private val supportedImageTypes = listOf("image/jpeg", "image/png", "image/gif", "image/webp", "image/jxl", "image/heif", "image/avif")
private const val TYPE_SERIES = "Series"
private const val TYPE_READLISTS = "Read lists"