[issue21230] imghdr does not accept adobe photoshop mime type

2014-06-12 Thread Claudiu Popa

Claudiu Popa added the comment:

Issue issue16512 has a patch which will recognize this format of JPEG, as well 
as others.

--
nosy: +Claudiu.Popa

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21230
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21230] imghdr does not accept adobe photoshop mime type

2014-06-12 Thread R. David Murray

R. David Murray added the comment:

Closing this in favor of issue 16512, which I will expand to include this case.

--
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - imghdr doesn't support jpegs with an ICC profile

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21230
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21230] imghdr does not accept adobe photoshop mime type

2014-04-18 Thread R. David Murray

R. David Murray added the comment:

Well, it's 'expected' behavior in the sense that we don't know about 'adobe' 
format.  Is there some better way to detect jpeg format than to look for 
particular format identifiers in a specific byte position?

--
type: enhancement - behavior
versions: +Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21230
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21230] imghdr does not accept adobe photoshop mime type

2014-04-14 Thread Faiz Abbasi

New submission from Faiz Abbasi:

Python 2.7

I noticed a recurring bug we've had attempting to send a particular JPEG image 
in emails:

email.mime.image.__init__
unknown: Could not guess image MIME subtype

After looking into the imghdr.what and tests source code, I noticed that this 
JPEG image begins with the following data: 
'\xff\xd8\xff\xee\x00\x0eAdobe\x00d\x00\x00\x00\x00\x00\xff\xed\x008Photoshop '

I've attached the image in question to this bug report.

There's two functions for asserting an image is JPEG format, test_jpeg and 
test_exif. I'd like to propose another function for resolving Adobe Photoshop 
image formats.

Unless, of course, this is expected behavior?

Thanks!

--
components: email
files: image.jpeg
messages: 216260
nosy: barry, benjamin.peterson, faiz, r.david.murray
priority: normal
severity: normal
status: open
title: imghdr does not accept adobe photoshop mime type
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file34862/image.jpeg

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21230
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com