[New-bugs-announce] [issue44539] Imghdr JPG Quantized
Mohamad Mansour
report at bugs.python.org
Wed Jun 30 04:12:46 EDT 2021
New submission from Mohamad Mansour <moemansour03 at gmail.com>:
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.com/itu/itu-t81-36.html
https://web.archive.org/web/20120403212223/http://class.ee.iastate.edu/ee528/Reading%20material/JPEG_File_Format.pdf
----------
components: C API
messages: 396771
nosy: m.mansour
priority: normal
severity: normal
status: open
title: Imghdr JPG Quantized
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44539>
_______________________________________
More information about the New-bugs-announce
mailing list