[New-bugs-announce] [issue21230] imghdr does not accept adobe photoshop mime type

Faiz Abbasi report at bugs.python.org
Tue Apr 15 03:13:51 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue21230>
_______________________________________


More information about the New-bugs-announce mailing list