Re: canon jpegs
| From: | tg-php at gryffyndevelopment dot com | Date: | Fri, 13 Oct 2006 15:13:51 +0000 |
| Subject: | Re: canon jpegs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-243091@lists.php.net to get a copy of this message | ||
Emil.. I havn't played with GD too much but I suspect it has something to do with the fact that
digital cameras tend to save EXIF jpg images that have some extra headers on them with data about
the camera and other stuff (some cameras even have GPS in them and will store the lat/long of where
the image was taken.. stuff like that).
If you have a hex editor, take a look at the first few bytes of the file. If it says EXIF then
it's one of these images (which I assume it is)... if it says "JFIF" it's a
standard regular old JPG.
Converting from your camera's "jpg" to regular jpg can be done in just about any
image editing software, as EXIF format seems to be really poorly supported.
Photoshop for instance, will completely rewrite the header (unless maybe you load and immediately
save without doing any editing.. then it may decide you didn't change anything, so it
won't save anything.. dunno).
It could just be that GD doesn't know what to do with all the extra headers. See if
there's any data on GD and EXIF files floating around.
Good luck!
-TG
= = = Original message = = =
> On Oct 12, 2006, at 5:35 PM, Emil Edeholt wrote:
>
>> Hi!
>>
>> I'm trying to make thumbnails of uploaded jpegs via GD. It works
>> fine on most jpegs but doesn't seem to work on canon jpegs (tried
>> both a consumer canon and one of the finer DSLRs). When I resaved
>> the canon jpeg in my imaging application GD could handle it.
>>
>> Any ideas of how to solve this? I'm in a bit of a panic.
>>
>> Emil
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.