Skip to content

Commit bac83f7

Browse files
committed
Check that orientation is still absent after reloading Exif
1 parent 7e1261c commit bac83f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/test_imageops.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,9 @@ def check(orientation_im):
352352
transposed_im = ImageOps.exif_transpose(im)
353353
assert 0x0112 not in transposed_im.getexif()
354354

355+
transposed_im._reload_exif()
356+
assert 0x0112 not in transposed_im.getexif()
357+
355358
# Orientation from "Raw profile type exif" info key
356359
# This test image has been manually hexedited from exif_imagemagick.png
357360
# to have a different orientation

0 commit comments

Comments
 (0)