add the 2 remaining apng checks too

This commit is contained in:
tibbi 2021-08-17 16:18:19 +02:00
parent d6f709873e
commit 94ece2461b
2 changed files with 3 additions and 0 deletions

View file

@ -9,6 +9,7 @@ import java.util.*
fun File.isMediaFile() = absolutePath.isMediaFile()
fun File.isGif() = absolutePath.endsWith(".gif", true)
fun File.isApng() = absolutePath.endsWith(".apng", true)
fun File.isVideoFast() = videoExtensions.any { absolutePath.endsWith(it, true) }
fun File.isImageFast() = photoExtensions.any { absolutePath.endsWith(it, true) }
fun File.isAudioFast() = audioExtensions.any { absolutePath.endsWith(it, true) }

View file

@ -56,6 +56,8 @@ fun String.isGif() = endsWith(".gif", true)
fun String.isPng() = endsWith(".png", true)
fun String.isApng() = endsWith(".apng", true)
fun String.isJpg() = endsWith(".jpg", true) or endsWith(".jpeg", true)
fun String.isSvg() = endsWith(".svg", true)