[issue44539] Support recognizing JPEG files without JFIF or Exif markers

2021-07-20 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Mohamad! ✨ 🍰 ✨ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue44539] Support recognizing JPEG files without JFIF or Exif markers

2021-07-20 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue44539] Support recognizing JPEG files without JFIF or Exif markers

2021-07-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3b56b3b97d91e2b412ce1b2bcaddcd43ef3d223b by Mohamad Mansour in branch 'main': bpo-44539: Support recognizing JPEG files without JFIF or Exif markers (GH-26964) https://github.com/python/cpython/commit/3b56b3b97d91e2b412ce1b2bcaddcd43ef3d223b ---

[issue44539] Support recognizing JPEG files without JFIF or Exif markers

2021-07-20 Thread Łukasz Langa
Łukasz Langa added the comment: 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 fa