From 8ffe19d9b0e936fc9b8485b9ee988e55d175ec12 Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Sun, 18 Jan 2026 14:17:38 +0100 Subject: [PATCH] bug/minor: gif: prevent gifs from being truncated to first frame fix #39 skip resize of gif files --- src/dropzone.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dropzone.js b/src/dropzone.js index 842bd5501..8647c40c9 100644 --- a/src/dropzone.js +++ b/src/dropzone.js @@ -902,7 +902,8 @@ export default class Dropzone extends Emitter { file.dataURL = fileReader.result; // Don't bother creating a thumbnail for SVG images since they're vector - if (file.type === "image/svg+xml") { + // Also skip gif (see #39) + if (file.type === "image/svg+xml" || file.type === "image/gif") { if (callback != null) { callback(fileReader.result); }