From f4c2d4652e843ffbf63ab7e9898353044fdf59ba Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sun, 7 Nov 2021 10:36:50 +1100 Subject: [PATCH] Fix test/data/animated-red-blue.apng loop count The diff of the "hd" hex dump shows that the acTL chunk's nominal loop count changed from 2 to 3. The 4-byte CRC-32 checksum was also updated. 00000000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 |.PNG........IHDR| 00000010 00 00 00 40 00 00 00 30 08 02 00 00 00 2e 29 eb |...@...0......).| 00000020 48 00 00 00 08 61 63 54 4c 00 00 00 04 00 00 00 |H....acTL.......| -00000030 02 92 c3 07 fc 00 00 00 06 74 52 4e 53 00 00 00 |.........tRNS...| +00000030 03 e5 c4 37 6a 00 00 00 06 74 52 4e 53 00 00 00 |...7j....tRNS...| 00000040 00 00 10 73 11 17 f5 00 00 00 1a 66 63 54 4c 00 |...s.......fcTL.| 00000050 00 00 00 00 00 00 40 00 00 00 30 00 00 00 00 00 |......@...0.....| 00000060 00 00 00 00 0a 00 64 00 00 80 50 f1 a2 00 00 03 |......d...P.....| --- test/data/README.md | 6 +++++- test/data/animated-red-blue.apng | Bin 2003 -> 2003 bytes 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/data/README.md b/test/data/README.md index 59ff20d7..e90f979d 100644 --- a/test/data/README.md +++ b/test/data/README.md @@ -11,7 +11,11 @@ ImageMagick's `convert` command line tool. The `*.wbmp` versions were generated by the `script/convert-png-to-wbmp.go` command line tool. The `*.webp` versions were generated by the cwebp command line tool. The `*.no-ancillary.png` files were generated by the `script/strip-png-ancillary-chunks.go` command line tool. -The `*.apng` files were generated by `gif2apng`. + +The `*.apng` files were generated by `gif2apng`. Those with finite animation +loop counts were manually patched to correct for a `gif2apng` bug. +https://bugs.chromium.org/p/chromium/issues/detail?id=592735 argues that GIF +and APNG/WEBP have different semantics but `gif2apng` does not cater for that. --- diff --git a/test/data/animated-red-blue.apng b/test/data/animated-red-blue.apng index 2ee2cb3fc69f75425636f0b0afbba35fe1bc3f31..1c98c6084789b5a5c13933026049d85a219a264d 100644 GIT binary patch delta 16 Ycmcc2f0=)R0W0&BBZvX%Q