Message216260
| Author |
faiz |
| Recipients |
barry, benjamin.peterson, faiz, r.david.murray |
| Date |
2014年04月15日.01:13:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1397524431.49.0.471880586962.issue21230@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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! |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年04月15日 01:13:51 | faiz | set | recipients:
+ faiz, barry, benjamin.peterson, r.david.murray |
| 2014年04月15日 01:13:51 | faiz | set | messageid: <1397524431.49.0.471880586962.issue21230@psf.upfronthosting.co.za> |
| 2014年04月15日 01:13:51 | faiz | link | issue21230 messages |
| 2014年04月15日 01:13:50 | faiz | create |
|