[issue28591] imghdr doesn't recognize some jpeg formats

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: imghdr is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-10 Thread Raul
Raul added the comment: New patch for imghdr bug, including unittets. This patch works on python 2.7 -- Added file: http://bugs.python.org/file45434/imghdr_py27.patch ___ Python tracker

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-10 Thread Raul
Raul added the comment: The issue16512 don't solve the problem, note how the patch it provide fails to detect all the valid JPEG images attached in this issue. -- ___ Python tracker ___

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-10 Thread Raul
Raul added the comment: Image used in the unit-tests of previous patch. Add it under Lib/test/imghdrdata/python1.jpg -- Added file: http://bugs.python.org/file45433/python1.jpg ___ Python tracker __

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-10 Thread Raul
Raul added the comment: New patch for imghdr bug, including unittets. This patch works on python 3.x -- Added file: http://bugs.python.org/file45432/imghdr_py3.patch ___ Python tracker _

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Xiang Zhang
Xiang Zhang added the comment: There is also #27121 reporting similar problem. -- nosy: +xiang.zhang versions: -Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Kovid Goyal
Kovid Goyal added the comment: FYI, the uptodate version of imghdr I maintain is here: https://github.com/kovidgoyal/calibre/blob/master/src/calibre/utils/imghdr.py It uses memoryview for performance and can also also read image sizes from file headers for jpeg, png, gif and jpeg2000. Note that

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread R. David Murray
R. David Murray added the comment: There seem to be unrelated changes in your patches, and we'll want tests as well before committing. See also issue 16512 and the issues linked from it. (I haven't reviewed to see if there is any overlap.) -- ___

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul
Raul added the comment: Working imghdr lib for python 3.X -- Added file: http://bugs.python.org/file45325/imghdr_py3.py ___ Python tracker ___ ___

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul
Raul added the comment: Working imghdr lib for python 2.7.X -- Added file: http://bugs.python.org/file45324/imghdr_py27.py ___ Python tracker ___

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul
Raul added the comment: patch for python 3.X -- Added file: http://bugs.python.org/file45323/imghdr35.patch ___ Python tracker ___ ___

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul
Changes by Raul : Removed file: http://bugs.python.org/file45322/imghdr35.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul
Raul added the comment: patch for python 3.X -- Added file: http://bugs.python.org/file45322/imghdr35.py ___ Python tracker ___ ___ Py

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul
Raul added the comment: patch for python 2.7 -- keywords: +patch Added file: http://bugs.python.org/file45321/imghdr27.patch ___ Python tracker ___ __

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul
Raul added the comment: Other valid jpeg image not detected. -- Added file: http://bugs.python.org/file45318/2.jpg ___ Python tracker ___

[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul
New submission from Raul: Some valid JPEG images are not detected by the imghdr lib. -- components: Library (Lib) files: 1.jpg messages: 279940 nosy: 4simple-org, Claudiu.Popa, ezio.melotti, haypo, intgr, jcea, joril, kovid, mvignali, r.david.murray priority: normal severity: normal sta