Krishna Oza <krishoza15...@gmail.com> added the comment:
Victor I have debugged the issue and found that the jpg file shared doesnt have the information in its header to identify the file format of this file. The imghdr module needs file format information in first 32 bytes when the jpg file is read in binary mode. However for the file "e2006bd7-51d7-4554-9738-ea13207fd104.jpg" there is no such information present and hence I would like to suggest that the issue be closed appropriately. P.S. Attaching the dump of file "e2006bd7-51d7-4554-9738-ea13207fd104.jpg" when read in binary mode. ---------- nosy: +vstinner Added file: https://bugs.python.org/file48492/cpython_imghdr_issue.txt _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37629> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com