sksamuel / scrimage

JVM - Java, Kotlin, Scala image processing library
https://sksamuel.github.io/scrimage
Apache License 2.0
1.05k stars 140 forks source link

StreamingGifWriter#withInfiniteLoop method doesn't work correctly #272

Closed shaksternano closed 9 months ago

shaksternano commented 11 months ago

Setting com.sksamuel.scrimage.nio.StreamingGifWriter#withInfiniteLoop with the value of false produces a GIF that plays twice, when it should only play once.

shaksternano commented 11 months ago

This might be an issue with browser GIF players and not the produced GIF. Removing the GIF application extension block instead of setting the loop value to 1 in it seems to cause GIF players to correctly only play the GIF once.

shaksternano commented 11 months ago

It appears this is what ezgif does.

sksamuel commented 9 months ago

Fixed in 4.0.41, Thanks for bug report.