mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-01 03:33:21 +03:00
Derive some avif test images from existing Pillow test images
Replace chimera-missing-pixi.avif and rgba10.heif with images derived from the pillow "hopper" test image.
This commit is contained in:
parent
eff26805f7
commit
fb096e15cc
Binary file not shown.
BIN
Tests/images/avif/hopper-missing-pixi.avif
Normal file
BIN
Tests/images/avif/hopper-missing-pixi.avif
Normal file
Binary file not shown.
BIN
Tests/images/avif/hopper.heif
Normal file
BIN
Tests/images/avif/hopper.heif
Normal file
Binary file not shown.
Binary file not shown.
|
@ -566,7 +566,7 @@ class TestFileAvif:
|
|||
|
||||
def test_decoder_strict_flags(self) -> None:
|
||||
# This would fail if full avif strictFlags were enabled
|
||||
with Image.open("Tests/images/avif/chimera-missing-pixi.avif") as im:
|
||||
with Image.open("Tests/images/avif/hopper-missing-pixi.avif") as im:
|
||||
assert im.size == (480, 270)
|
||||
|
||||
@skip_unless_avif_encoder("aom")
|
||||
|
@ -672,7 +672,7 @@ class TestAvifAnimation:
|
|||
|
||||
def test_heif_raises_unidentified_image_error(self) -> None:
|
||||
with pytest.raises(UnidentifiedImageError):
|
||||
with Image.open("Tests/images/avif/rgba10.heif"):
|
||||
with Image.open("Tests/images/avif/hopper.heif"):
|
||||
pass
|
||||
|
||||
@pytest.mark.parametrize("alpha_premultiplied", [False, True])
|
||||
|
|
Loading…
Reference in New Issue
Block a user