Fixed animated gif delay.
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 5 Jan 2020 17:01:34 +0000 (19:01 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 5 Jan 2020 17:01:34 +0000 (19:01 +0200)
src/main/java/eu/svjatoslav/meviz/htmlindexer/GifSequenceWriter.java
src/main/java/eu/svjatoslav/meviz/htmlindexer/metadata/fileTypes/Picture.java

index c62bc23..8224222 100644 (file)
@@ -37,7 +37,7 @@ public class GifSequenceWriter {
         graphicsControlExtensionNode.setAttribute("disposalMethod", "none");
         graphicsControlExtensionNode.setAttribute("userInputFlag", "FALSE");
         graphicsControlExtensionNode.setAttribute("transparentColorFlag", "FALSE");
         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");
         graphicsControlExtensionNode.setAttribute("transparentColorIndex", "0");
 
         IIOMetadataNode commentsNode = getNode(root, "CommentExtensions");
index 7a1ba39..3761024 100755 (executable)
@@ -224,7 +224,6 @@ public class Picture extends AbstractFile {
                 + getFileLength() + " "
                 + Constants.THUMBNAIL_VERSION;
 
                 + getFileLength() + " "
                 + Constants.THUMBNAIL_VERSION;
 
-        // System.out.println("Computing hash from: " + forMagicHash);
         return Utils.getStringCrcAsHex(forMagicHash);
     }
 
         return Utils.getStringCrcAsHex(forMagicHash);
     }