Skip to content

Node.js based forum software built for the modern web

fix: dont stripEXIF from gifs

Barış Soner Uşaklıf478adac2f03
diff --git a/src/image.js b/src/image.js
index 6c0ae9e68a..06e3f2d76d 100644
--- a/src/image.js
+++ b/src/image.js
@@ -103,7 +103,7 @@ image.size = async function (path) {
};
image.stripEXIF = async function (path) {
- if (!meta.config.stripEXIFData || path.endsWith('.svg')) {
+ if (!meta.config.stripEXIFData || path.endsWith('.gif') || path.endsWith('.svg')) {
return;
}
try {