Added webp support

This commit is contained in:
Abdelilah El Aissaoui 2022-02-01 19:46:17 +01:00
parent 641df2b3b7
commit 2efaf654c7

View file

@ -30,6 +30,7 @@ class RawFileManager @AssistedInject constructor(
"png", "png",
"jpg", "jpg",
"jpeg", "jpeg",
"webp",
) )
init { init {
@ -87,7 +88,7 @@ class RawFileManager @AssistedInject constructor(
val path = entry.newPath val path = entry.newPath
val fileExtension = path.split(".").lastOrNull() ?: return false val fileExtension = path.split(".").lastOrNull() ?: return false
return imageFormatsSupported.contains(fileExtension) return imageFormatsSupported.contains(fileExtension.lowercase())
} }
// fun isBinary() = RawText.isBinary() // fun isBinary() = RawText.isBinary()