Weird issue with a Mac created JPG
Posted: 2008-05-14T05:19:05-07:00
Hello all,
I came across a weird result for a file upload / image analyzer I'm writing. When a person uploads the file, I check it's color space, density, file size etc. Nothing major. However, I get a strange error for JPEGs that are created on a mac (photoshop), and then uploaded by a PC.
If I create the jpeg, and upload it - no error
If my co-worker creates the image and uploads it - no error
if I create the image and send to my coworker and he uploads it - no error
if I use the image he created, I get the following error:
And oddly enough, if I try to preview this file in windows it does not work. However, I can open it in photoshop and view it there and it reports that it is a jpeg. This is not so much an imageMagick problem but I was wondering if t here was anything specific I could look for in such a file that would allow me to account for this programmatically. If anyone wants to look into this I can provide one such file that demonstrates this odd behavior.
thanks!
I came across a weird result for a file upload / image analyzer I'm writing. When a person uploads the file, I check it's color space, density, file size etc. Nothing major. However, I get a strange error for JPEGs that are created on a mac (photoshop), and then uploaded by a PC.
If I create the jpeg, and upload it - no error
If my co-worker creates the image and uploads it - no error
if I create the image and send to my coworker and he uploads it - no error
if I use the image he created, I get the following error:
Code: Select all
identity: 450: Not a JPEG file: starts with 0x00 0x0b
thanks!