Skip to content

Commit a08536d

Browse files
authored
bug/minor: gif: prevent gifs from being truncated to first frame (#46)
fix #39 skip resize of gif files
1 parent 408ae6a commit a08536d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/dropzone.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,8 @@ export default class Dropzone extends Emitter {
902902
file.dataURL = fileReader.result;
903903

904904
// Don't bother creating a thumbnail for SVG images since they're vector
905-
if (file.type === "image/svg+xml") {
905+
// Also skip gif (see #39)
906+
if (file.type === "image/svg+xml" || file.type === "image/gif") {
906907
if (callback != null) {
907908
callback(fileReader.result);
908909
}

0 commit comments

Comments
 (0)