From 0e7a5f5c9bcf454c717c70fb4872e3e46e149619 Mon Sep 17 00:00:00 2001 From: Nick Espig Date: Tue, 24 Nov 2020 22:01:06 +0100 Subject: [PATCH] Fix breaking GIFs while removing metadata Closes #4109 GIFs can't contain EXIF data and do not contain any other metadata that isn't operationl --- client/js/upload.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/js/upload.js b/client/js/upload.js index 33d4e154..3da21a44 100644 --- a/client/js/upload.js +++ b/client/js/upload.js @@ -141,7 +141,8 @@ class Uploader { if ( store.state.settings.uploadCanvas && file.type.startsWith("image/") && - !file.type.includes("svg") + !file.type.includes("svg") && + file.type !== "image/gif" ) { this.renderImage(file, (newFile) => this.performUpload(token, newFile)); } else {