Skip to content

Commit

Permalink
test: add rle tga images
Browse files Browse the repository at this point in the history
Converted from raw TGA ones using GIMP and some tweaks:

- Left ones are unmodified GIMP export.
- Right ones are in-GIMP horizontally flipped images exported as left
  ones then the TGA X flip bit was modified by hand in a hex editor.
  • Loading branch information
illwieckz committed Jul 11, 2024
1 parent a386984 commit cf279c6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 0 deletions.
Binary file added test/rle-bottom-left.tga
Binary file not shown.
Binary file added test/rle-bottom-right.tga
Binary file not shown.
Binary file added test/rle-top-left.tga
Binary file not shown.
Binary file added test/rle-top-right.tga
Binary file not shown.
4 changes: 4 additions & 0 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ def crunch(input_path, output_path, options=[]):
crunch("test/raw-bottom-right.tga", "build/test/4/raw-bottom-right.crn")
crunch("test/raw-top-left.tga", "build/test/4/raw-top-left.crn")
crunch("test/raw-top-right.tga", "build/test/4/raw-top-right.crn")
crunch("test/rle-bottom-left.tga", "build/test/4/rle-bottom-left.crn")
crunch("test/rle-bottom-right.tga", "build/test/4/rle-bottom-right.crn")
crunch("test/rle-top-left.tga", "build/test/4/rle-top-left.crn")
crunch("test/rle-top-right.tga", "build/test/4/rle-top-right.crn")

mkdir("build/test/5")
crunch("test/test-colormap1-alpha1.png", "build/test/5/test-colormap1-alpha1.crn")
Expand Down

0 comments on commit cf279c6

Please sign in to comment.