Use naturally created image

This commit is contained in:
Andrew Murray 2025-09-15 22:31:15 +10:00
parent 9ba1029d51
commit ce8d05484b
3 changed files with 4 additions and 6 deletions

BIN
Tests/images/frame_size.mpo Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

View File

@ -104,18 +104,16 @@ def test_exif(test_file: str) -> None:
def test_frame_size() -> None: def test_frame_size() -> None:
# This image has been hexedited to contain a different size with Image.open("Tests/images/frame_size.mpo") as im:
# in the SOF marker of the second frame assert im.size == (56, 70)
with Image.open("Tests/images/sugarshack_frame_size.mpo") as im:
assert im.size == (640, 480)
im.load() im.load()
im.seek(1) im.seek(1)
assert im.size == (680, 480) assert im.size == (349, 434)
im.load() im.load()
im.seek(0) im.seek(0)
assert im.size == (640, 480) assert im.size == (56, 70)
def test_ignore_frame_size() -> None: def test_ignore_frame_size() -> None: