diff --git a/common/common.go b/common/common.go index 5384005b..75588b56 100644 --- a/common/common.go +++ b/common/common.go @@ -57,7 +57,7 @@ type StringList []string // TODO: Let admins manage this from the Control Panel // apng is commented out for now, as we have no way of re-encoding it into a smaller file var AllowedFileExts = StringList{ - "png", "jpg", "jpeg","jfif", "svg", "bmp", "gif", "tiff","tif", "webp", /*"apng",*/ // images + "png", "jpg", "jpe","jpeg","jif","jfi","jfif", "svg", "bmp", "gif", "tiff","tif", "webp", /*"apng",*/ // images "txt", "xml", "json", "yaml", "toml", "ini", "md", "html", "rtf", "js", "py", "rb", "css", "scss", "less", "eqcss", "pcss", "java", "ts", "cs", "c", "cc", "cpp", "cxx", "C", "c++", "h", "hh", "hpp", "hxx", "h++", "rs", "rlib", "htaccess", "gitignore", /*"go","php",*/ // text @@ -66,7 +66,7 @@ var AllowedFileExts = StringList{ "otf", "woff2", "woff", "ttf", "eot", // fonts } var ImageFileExts = StringList{ - "png", "jpg", "jpeg","jfif", "svg", "bmp", "gif", "tiff","tif", "webp", /* "apng",*/ + "png", "jpg", "jpe","jpeg","jif","jfi","jfif", "svg", "bmp", "gif", "tiff","tif", "webp", /* "apng",*/ } var ArchiveFileExts = StringList{ "bz2", "zip", "gz", "7z", "tar", "cab", diff --git a/common/thumbnailer.go b/common/thumbnailer.go index 24af9ceb..1fa4b8ae 100644 --- a/common/thumbnailer.go +++ b/common/thumbnailer.go @@ -49,7 +49,7 @@ func ThumbTask(thumbChan chan bool) { /*if user.RawAvatar == ".gif" { return nil }*/ - if user.RawAvatar != ".png" && user.RawAvatar != ".jpg" && user.RawAvatar != ".jpeg" && user.RawAvatar != ".jfif" && user.RawAvatar != ".gif" && user.RawAvatar != "tiff" && user.RawAvatar != "tif" { + if user.RawAvatar != ".png" && user.RawAvatar != ".jpg" && user.RawAvatar != ".jpe" && user.RawAvatar != ".jpeg" && user.RawAvatar != ".jif" && user.RawAvatar != ".jfi" && user.RawAvatar != ".jfif" && user.RawAvatar != ".gif" && user.RawAvatar != "tiff" && user.RawAvatar != "tif" { return nil } diff --git a/public/member.js b/public/member.js index 24d1457d..4172c54b 100644 --- a/public/member.js +++ b/public/member.js @@ -1,5 +1,5 @@ // TODO: Push ImageFileExts to the client from the server in some sort of gen.js? -var imageExts = ["png", "jpg", "jpeg","jfif", "svg", "bmp", "gif", "tiff","tif", "webp"]; +var imageExts = ["png", "jpg", "jpe","jpeg","jif","jfi","jfif", "svg", "bmp", "gif", "tiff","tif", "webp"]; (() => { addInitHook("almost_end_init", () => {