pixelmatch
pixelmatch copied to clipboard
Failed to load/decode PNG-8
Hello,
Can you tell me if pixelmatch can load PNG-8 files? (color palette). I got "failed: EncodingError: The source image cannot be decoded." error for a valid PNG-8 files (256 colors in palette).
Here is a short dump with magick tool:
Properties:
date:create: 2025-06-10T08:33:29+00:00
date:modify: 2025-06-10T08:31:10+00:00
date:timestamp: 2025-06-10T11:46:58+00:00
png:IHDR.bit-depth-orig: 8
png:IHDR.bit_depth: 8
png:IHDR.color-type-orig: 3
png:IHDR.color_type: 3 (Indexed)
png:IHDR.interlace_method: 0 (Not interlaced)
png:IHDR.width,height: 108, 108
png:PLTE.number_colors: 256