Martin Vignali added the comment:
I'm okay with just testing the first two bytes, it's the method we currently
use for our
internal tools.
But maybe it can be interesting, to add another test, in order to detect
incomplete file
(created when a camera make a recording error for ex
Martin Vignali added the comment:
I made a simple exr file with the lib Exr (it's a half float ZIP16 RGBA file),
in order to add real exr file to the unit test.
When use with the patch i made here http://bugs.python.org/issue20295 ,
this sample file return 'exr'.
Sorry, i do
Martin Vignali added the comment:
You're right, i make the correction, in a new patch.
I make other tests, with official sample files :
http://download.savannah.nongnu.org/releases/openexr/openexr-images-1.4.0.tar.gz
--
Added file: http://bugs.python.org/file33554/img_hdr_exr_3.
Martin Vignali added the comment:
New patch with formatting correction and documentation update.
I'm not sure about the place of the versionadded directive in the documentation.
--
Added file: http://bugs.python.org/file33547/img_hdr_exr_2.
New submission from Martin Vignali:
Add support for detect openexr file (http://www.openexr.com/)
Based on information provided by :
http://www.openexr.com/ReadingAndWritingImageFiles.pdf
I make some tests, on different kind of exr file, to check, the new function.
--
components