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
This commit is contained in:
Nick Espig 2020-11-24 22:01:06 +01:00 committed by Nachtalb
parent b2d5cdd4fc
commit 0e7a5f5c9b
1 changed files with 2 additions and 1 deletions

View File

@ -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 {