imghdr.what failed to identify JPEG

Terry Reedy tjreedy at
Sun Jun 8 20:59:55 CEST 2003

"Steven Taschuk" <staschuk at> wrote in message
news:mailman.1055086335.1441.python-list at
> Quoth Arsenal:
>   [...]
> > Bytes [6:10] for my 52 jpg files are 'Exif'. So if imghdr.what
> > this additonal check, all of my jpgs would be correctly
> That would be easy enough to implement, but I really have no idea
> whether it would be the Right Thing.
> The docs explicitly say that 'jpeg' is returned for JFIF JPEGs;
> not, that implies, for EXIF JPEGs.  I don't know what the
> differences between these standards are, nor whether or to what
> extent imghdr.what ought to be sensitive to the distinction.

This strikes me as something reasonable to submit an SF patch or bug
report for.


More information about the Python-list mailing list