From 54a3dc417f7820955b8bb07af57cfc077631ba51 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Mon, 20 Jan 2014 10:59:30 -0800 Subject: [PATCH] Test for PR#498 --- Tests/test_file_webp_metadata.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Tests/test_file_webp_metadata.py b/Tests/test_file_webp_metadata.py index 886011322..b4146c3ee 100644 --- a/Tests/test_file_webp_metadata.py +++ b/Tests/test_file_webp_metadata.py @@ -82,3 +82,20 @@ def test_write_icc_metadata(): assert_true(webp_icc_profile) if webp_icc_profile: assert_equal(webp_icc_profile, expected_icc_profile, "Webp ICC didn't match") + + +def test_read_no_exif(): + file_path = "Tests/images/flower.jpg" + image = Image.open(file_path) + expected_exif = image.info['exif'] + + buffer = BytesIO() + + image.save(buffer, "webp") + + buffer.seek(0) + webp_image = Image.open(buffer) + + assert_false(webp_image._getexif()) + +