This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lukasz.langa
Recipients fbidu, lukasz.langa, mohamadmansourx
Date 2021-07-20.18:13:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626804784.41.0.187395699716.issue44539@roundup.psfhosted.org>
In-reply-to
Content
When JFIF and Exif markers are removed, what we're left with is a "raw" JPEG file.

I added a raw equivalent of Lib/test/imghdrdata/python.jpg by running:

$ exiftool -all= python.jpg -o python-raw.jpg

Mohamad's patch correctly adds support for such files. In fact, browsing through how other languages do this, it seems like the FF D8 FF DB sequence is a relatively popular "magic sequence". It's even listed in this Wikipedia page:

https://en.wikipedia.org/wiki/List_of_file_signatures
History
Date User Action Args
2021-07-20 18:13:04lukasz.langasetrecipients: + lukasz.langa, fbidu, mohamadmansourx
2021-07-20 18:13:04lukasz.langasetmessageid: <1626804784.41.0.187395699716.issue44539@roundup.psfhosted.org>
2021-07-20 18:13:04lukasz.langalinkissue44539 messages
2021-07-20 18:13:04lukasz.langacreate