Add "webp" file extension as picture.

This commit is contained in:
Kleissner
2021-12-14 16:55:52 +01:00
parent a67c67b7f9
commit 5a89f2b943

View File

@@ -55,7 +55,7 @@ func FileTranslateExtension(extension string) (fileType, fileFormat uint16) {
case "xls", "xlsx", "ods":
return core.TypeDocument, core.FormatExcel
case "gif", "jpg", "jpeg", "png", "svg", "bmp", "tif", "tiff", "jfif":
case "gif", "jpg", "jpeg", "png", "svg", "bmp", "tif", "tiff", "jfif", "webp":
return core.TypePicture, core.FormatPicture
case "mp4", "flv", "avi", "mov", "mpg", "mpeg", "h264", "3g2", "3gp", "mkv", "wmv", "webm":