[issue16512] imghdr doesn't recognize variant jpeg formats

2019-07-19 Thread Pierre Chopin
Change by Pierre Chopin : -- pull_requests: +14651 pull_request: https://github.com/python/cpython/pull/14862 ___ Python tracker ___ ___

[issue16512] imghdr doesn't recognize variant jpeg formats

2018-07-18 Thread Govind Vijay
Change by Govind Vijay : -- pull_requests: +7860 stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue16512] imghdr doesn't recognize variant jpeg formats

2014-09-26 Thread Claudiu Popa
Changes by Claudiu Popa : -- stage: patch review -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16512] imghdr doesn't recognize variant jpeg formats

2014-06-21 Thread Kovid Goyal
Kovid Goyal added the comment: You cannot assume the file like object passed to imghdr is seekable. And IMO it is not the job of imghdr to check file validity, especially since it does not do that for all formats. -- ___ Python tracker

[issue16512] imghdr doesn't recognize variant jpeg formats

2014-06-21 Thread Martin Vignali
Martin Vignali added the comment: I'm okay with just testing the first two bytes, it's the method we currently use for our internal tools. But maybe it can be interesting, to add another test, in order to detect incomplete file (created when a camera make a recording error for example, and ver

[issue16512] imghdr doesn't recognize variant jpeg formats

2014-06-12 Thread R. David Murray
R. David Murray added the comment: Issue 21230 reports a parallel problem with recognizing photoshop images. We need a patch with tests covering the variant types we know about. I don't have a strong opinion on the simple two byte test versus the more complex test in msg220346, but following