Skip to content

Commit ebddcc0

Browse files
committed
Use naturally created image
1 parent e77de26 commit ebddcc0

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Tests/images/frame_size.mpo

14.2 KB
Binary file not shown.
-117 KB
Binary file not shown.

Tests/test_file_mpo.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,16 @@ def test_exif(test_file: str) -> None:
104104

105105

106106
def test_frame_size() -> None:
107-
# This image has been hexedited to contain a different size
108-
# in the SOF marker of the second frame
109-
with Image.open("Tests/images/sugarshack_frame_size.mpo") as im:
110-
assert im.size == (640, 480)
107+
with Image.open("Tests/images/frame_size.mpo") as im:
108+
assert im.size == (56, 70)
111109
im.load()
112110

113111
im.seek(1)
114-
assert im.size == (680, 480)
112+
assert im.size == (349, 434)
115113
im.load()
116114

117115
im.seek(0)
118-
assert im.size == (640, 480)
116+
assert im.size == (56, 70)
119117

120118

121119
def test_ignore_frame_size() -> None:

0 commit comments

Comments
 (0)