Merge pull request #3771 from radarhere/app13

Fixed reading APP13 marker without Photoshop data
This commit is contained in:
Hugo 2019-05-04 16:10:02 +03:00 committed by GitHub
commit 0ccd887431
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

BIN
Tests/images/app13.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

View File

@ -620,6 +620,10 @@ class TestFileJpeg(PillowTestCase):
'DisplayedUnitsY': 1,
})
# This image does not contain a Photoshop header string
im = Image.open("Tests/images/app13.jpg")
self.assertNotIn("photoshop", im.info)
@unittest.skipUnless(sys.platform.startswith('win32'), "Windows only")
class TestFileCloseW32(PillowTestCase):