Message397891
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 |
|
Date |
User |
Action |
Args |
2021-07-20 18:13:04 | lukasz.langa | set | recipients:
+ lukasz.langa, fbidu, mohamadmansourx |
2021-07-20 18:13:04 | lukasz.langa | set | messageid: <1626804784.41.0.187395699716.issue44539@roundup.psfhosted.org> |
2021-07-20 18:13:04 | lukasz.langa | link | issue44539 messages |
2021-07-20 18:13:04 | lukasz.langa | create | |
|