hgysin - 2025-10-18

This works fine with the current version (7.9.1)
does not create currupted output anymore.


$ optipng testcase.png
** Processing: testcase.png
2168x1472 pixels, 4x8 bits/pixel, RGB+alpha
Reducing image to 3x8 bits/pixel, RGB
Input IDAT size = 209550 bytes
Input file size = 213359 bytes

Trying:
  zc = 9  zm = 8  zs = 0  f = 0         IDAT size = 85874

Selecting parameters:
  zc = 9  zm = 8  zs = 0  f = 0         IDAT size = 85874

Output IDAT size = 85874 bytes (123676 bytes decrease)
Output file size = 89527 bytes (123832 bytes = 58.04% decrease)

$ optipng --version
OptiPNG version 7.9.1
Copyright (C) 2001-2025 Cosmin Truta and the Contributing Authors.

This program is open-source software. See LICENSE for more details.

Portions of this software are based in part on the work of:
  Jean-loup Gailly and Mark Adler (zlib)
  Glenn Randers-Pehrson and the PNG Development Group (libpng)
  Miyasaka Masaru (BMP support)
  David Koblas (GIF support)

Using libpng version 1.6.50 and zlib version 1.3.1