[issue44539] Imghdr JPG Quantized

2021-06-30 Thread Mohamad Mansour
Change by Mohamad Mansour : -- keywords: +patch pull_requests: +25529 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26964 ___ Python tracker <https://bugs.python.org/issu

[issue44539] Imghdr JPG Quantized

2021-06-30 Thread Mohamad Mansour
Change by Mohamad Mansour : -- components: +Library (Lib) -C API ___ Python tracker <https://bugs.python.org/issue44539> ___ ___ Python-bugs-list mailin

[issue44539] Imghdr JPG Quantized

2021-06-30 Thread Mohamad Mansour
New submission from Mohamad Mansour : Previous method to check JPG images was using the following command (h[6:10] in (b'JFIF', b'Exif')) However, its not always the case as some might start with b'\xff\xd8\xff\xdb' header. Reference: https://www.digicamsoft