Skip to content

Commit

Permalink
Test multiple sections in uncompressed PNGs
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Corry committed Nov 21, 2023
1 parent 311198f commit 67693b6
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
Binary file modified tests/third_party/pictogrammers/heater-2-bit-uncompressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/third_party/pictogrammers/heater-4-bit-uncompressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/third_party/pictogrammers/heater-bw-uncompressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/third_party/pictogrammers/heater-red-uncompressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/third_party/pictogrammers/heater-uncompressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/third_party/pictogrammers/heater-white-bg-uncompressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 9 additions & 7 deletions tests/third_party/pictogrammers/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ pngout -y heater-translucent.png heater-translucent.png
pngout -y heater-red.png heater-red.png

# Make uncompressed versions.
pngunzip -o heater-2-bit-uncompressed.png heater-2-bit.png
pngunzip -o heater-bw-uncompressed.png heater-bw.png
pngunzip -o heater-white-bg-uncompressed.png heater-white-bg.png
pngunzip -o heater-translucent-uncompressed.png heater-translucent.png
pngunzip -o heater-red-uncompressed.png heater-red.png
pngunzip -o heater-4-bit-uncompressed.png heater-4-bit.png
pngunzip -o heater-uncompressed.png heater.png
# Be sure to test images that take more than one literal section.
PNGUNZIP_OPT=--max-literal-section=500
pngunzip $PNGUNZIP_OPT -o heater-2-bit-uncompressed.png heater-2-bit.png
pngunzip $PNGUNZIP_OPT -o heater-bw-uncompressed.png heater-bw.png
pngunzip $PNGUNZIP_OPT -o heater-white-bg-uncompressed.png heater-white-bg.png
pngunzip $PNGUNZIP_OPT -o heater-translucent-uncompressed.png heater-translucent.png
pngunzip $PNGUNZIP_OPT -o heater-red-uncompressed.png heater-red.png
pngunzip $PNGUNZIP_OPT -o heater-4-bit-uncompressed.png heater-4-bit.png
pngunzip $PNGUNZIP_OPT -o heater-uncompressed.png heater.png

0 comments on commit 67693b6

Please sign in to comment.