[issue37629] Imghdr doesnt recognise some jpeg

2019-09-11 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +15590 pull_request: https://github.com/python/cpython/pull/15955 ___ Python tracker ___ ___

[issue37629] Imghdr doesnt recognise some jpeg

2019-07-19 Thread Pierre Chopin
Pierre Chopin added the comment: This is actually a duplicate of bpo-16512, i am closing this. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker _

[issue37629] Imghdr doesnt recognise some jpeg

2019-07-19 Thread Krishna Oza
Krishna Oza 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. Ho

[issue37629] Imghdr doesnt recognise some jpeg

2019-07-19 Thread Krishna Oza
Change by Krishna Oza : -- components: +Library (Lib) type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue37629] Imghdr doesnt recognise some jpeg

2019-07-19 Thread Krishna Oza
Krishna Oza added the comment: The documentation at https://docs.python.org/3/library/imghdr.html?highlight=imghdr#module-imghdr says that JPEG files with JPEG data in JFIF or Exif formats are only supported as of now. Pierre Chopin could help with what format of jpeg you have uploaded. ---

[issue37629] Imghdr doesnt recognise some jpeg

2019-07-19 Thread Pierre Chopin
New submission from Pierre Chopin : the imghdr library only checks for the presence of (b'JFIF', b'Exif') in the header, which is excluding some valid JPEG file. This is an example of not recognised ile -- files: e2006bd7-51d7-4554-9738-ea13207fd104.jpg messages: 348161 nosy: pchopin