mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
#20295: Teach imghdr to recognize OpenEXR format images.
Patch by Martin Vignali, test by Claudiu Popa.
This commit is contained in:
parent
a157867a3d
commit
2f60820f4c
6 changed files with 20 additions and 0 deletions
|
|
@ -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 #
|
||||
#--------------------#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue