On Sunday 26 February 2006 10:59, Sameer N Ingole wrote:

> In PHP its not easy to keep EXIF data of JPEG or TIF files as it is if
> you use PHP functions to recreate the temporary files in some dir.
> 
> Basically when you use tempnam() it creates a temporary file. To get the
> thumbnails you must rewrite the resized file to some place (if you want
> real thumbnail image). You cannot preserve exif data with any of PHP
> functions available. You probably have to use some specially developed
> code to write exif data. I tried this class
> 
> http://www.zonageek.com/software/php/jpeg/
> 
> I tried to use it but either it could not write all the exif data or I
> was not calling required functions properly.. It requires pear..
> 
> Other you can try is http://pel.sourceforge.net/
> 
> But both of these will require you to write a resized image and then
> write exif data (common for both, original and resized) retrieved from
> the original image to the new thumbnail you generated with additional
> image specific exif info.
> 
> Best is to maintain thumbnails.. with exif data written in it too.
> 
> Regards,
> 

Thank you for your answer. I wasn't trying to write exif data to an image,
just to read it. I've got it all working now.


//Niels

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to