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

Reply via email to