diff --git a/Tests/images/rgba16.tga b/Tests/images/rgba16.tga new file mode 100644 index 000000000..3918647a2 Binary files /dev/null and b/Tests/images/rgba16.tga differ diff --git a/Tests/test_file_tga.py b/Tests/test_file_tga.py index 15c7bbdb8..a03a6a6e1 100644 --- a/Tests/test_file_tga.py +++ b/Tests/test_file_tga.py @@ -81,6 +81,14 @@ def test_palette_depth_16(tmp_path: Path) -> None: assert_image_equal_tofile(reloaded.convert("RGBA"), "Tests/images/p_16.png") +def test_rgba_16() -> None: + with Image.open("Tests/images/rgba16.tga") as im: + assert im.mode == "RGBA" + + assert im.getpixel((0, 0)) == (172, 0, 255, 255) + assert im.getpixel((1, 0)) == (0, 255, 82, 0) + + def test_id_field() -> None: # tga file with id field test_file = "Tests/images/tga_id_field.tga"