#20295: Teach imghdr to recognize OpenEXR format images.

Patch by Martin Vignali, test by Claudiu Popa.
This commit is contained in:
R David Murray 2014-06-26 12:27:57 -04:00
parent a157867a3d
commit 2f60820f4c
6 changed files with 20 additions and 0 deletions

View file

@ -116,6 +116,12 @@ def test_webp(h, f):
tests.append(test_webp)
def test_exr(h, f):
if h.startswith(b'\x76\x2f\x31\x01'):
return 'exr'
tests.append(test_exr)
#--------------------#
# Small test program #
#--------------------#