Support PNG-format palette spec files (#1764)

This commit is contained in:
Rangi
2025-07-21 11:33:16 -04:00
committed by GitHub
parent 9ef32e405c
commit ad81c74cda
11 changed files with 211 additions and 5 deletions

1
test/gfx/full_png.flags Normal file
View File

@@ -0,0 +1 @@
-c png:full_png.pal.png

BIN
test/gfx/full_png.out.2bpp Normal file

Binary file not shown.

Binary file not shown.

BIN
test/gfx/full_png.out.pal Normal file

Binary file not shown.

Binary file not shown.

BIN
test/gfx/full_png.pal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
test/gfx/full_png.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

View File

@@ -68,8 +68,8 @@ for f in seed*.bin; do
done
for f in *.png; do
# Do not process outputs of other tests as test inputs themselves
if [[ "$f" = result.png ]]; then
# Do not process outputs or palette inputs of other tests as test inputs themselves
if [[ "$f" = result.png ]] || [[ "$f" = *.pal.png ]]; then
continue
fi