From 893d61ee1713013dbf3fad723941c91cc2423972 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sun, 5 Jan 2020 19:01:34 +0200 Subject: [PATCH 1/1] Fixed animated gif delay. --- .../java/eu/svjatoslav/meviz/htmlindexer/GifSequenceWriter.java | 2 +- .../meviz/htmlindexer/metadata/fileTypes/Picture.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/GifSequenceWriter.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/GifSequenceWriter.java index c62bc23..8224222 100644 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/GifSequenceWriter.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/GifSequenceWriter.java @@ -37,7 +37,7 @@ public class GifSequenceWriter { graphicsControlExtensionNode.setAttribute("disposalMethod", "none"); graphicsControlExtensionNode.setAttribute("userInputFlag", "FALSE"); graphicsControlExtensionNode.setAttribute("transparentColorFlag", "FALSE"); - graphicsControlExtensionNode.setAttribute("delayTime", Integer.toString(delay / 10)); + graphicsControlExtensionNode.setAttribute("delayTime", Integer.toString(delay )); graphicsControlExtensionNode.setAttribute("transparentColorIndex", "0"); IIOMetadataNode commentsNode = getNode(root, "CommentExtensions"); diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/fileTypes/Picture.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/fileTypes/Picture.java index 7a1ba39..3761024 100755 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/fileTypes/Picture.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/fileTypes/Picture.java @@ -224,7 +224,6 @@ public class Picture extends AbstractFile { + getFileLength() + " " + Constants.THUMBNAIL_VERSION; - // System.out.println("Computing hash from: " + forMagicHash); return Utils.getStringCrcAsHex(forMagicHash); } -- 2.20.1