intgr added the comment:

I vote we forget about JFIF/Exif headers and only use \xff\xd8 to identify the 
file. They are optional and there are tons of files out in the wild without 
such headers, for example: 
https://coverartarchive.org/release/5044b557-a9ed-4a74-b763-e20580ced85d/3354872309.jpg

Proposed patch at 
https://bitbucket.org/intgr/cpython/commits/012cde305316e22a999d674a0a009200d3e76fdb

----------
hgrepos: +210
nosy: +intgr

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16512>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to