[issue16512] imghdr doesn't recognize variant jpeg formats

2014-06-21 Thread Martin Vignali
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

[issue19990] Add unittests for imghdr module

2014-01-19 Thread Martin Vignali
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

[issue20295] imghdr add openexr support

2014-01-19 Thread Martin Vignali
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.

[issue20295] imghdr add openexr support

2014-01-19 Thread Martin Vignali
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.

[issue20295] imghdr add openexr support

2014-01-18 Thread Martin Vignali
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