Merge pull request #4788 from samamorgan/master

This commit is contained in:
Hugo van Kemenade 2020-07-17 11:07:56 +03:00 committed by GitHub
commit 0b7077a385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ def test_sanity():
assert im.mode == "RGB"
assert im.size == (128, 128)
assert im.format == "PSD"
assert im.get_format_mimetype() == "image/vnd.adobe.photoshop"
im2 = hopper()
assert_image_similar(im, im2, 4.8)

View File

@ -307,3 +307,5 @@ def _maketile(file, mode, bbox, channels):
Image.register_open(PsdImageFile.format, PsdImageFile, _accept)
Image.register_extension(PsdImageFile.format, ".psd")
Image.register_mime(PsdImageFile.format, "image/vnd.adobe.photoshop")