Added webp support
This commit is contained in:
parent
641df2b3b7
commit
2efaf654c7
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue