From: Svjatoslav Agejenko Date: Sun, 5 Jan 2020 17:01:34 +0000 (+0200) Subject: Fixed animated gif delay. X-Git-Tag: meviz-1.2~13 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=893d61ee1713013dbf3fad723941c91cc2423972;p=meviz.git Fixed animated gif delay. --- 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); }