dave <[EMAIL PROTECTED]> writes:

> dave wrote:
>> hello
>>
>> i'm working on a photo gallery for my site which uses gd to resize
>> pictures, this strips the exif metadata from the image file
>>
>> my plan was to grab the exif data first (this was ok), then add it
>> back to the resized image (this was not ok)
>>
>> [...]
>   
> oops, can't believe i didn't see this earlier
> just get the exif data of the old file, load a new peljpeg with the
> new file and use insertSection to add the APP1 section to the new
> jpeg
>
> easy :D

Well, it is meant to be easy :-)

Please, if you get a piece of working code for this, then I would love
to include it as an example in the PEL distribution. Both as a
commandline and as a webserver script. I'm sure a lot of people would
appreciate it!

Also, you might want to take a look at the code in SVN if you haven't
already. I've recently added a getExif() and a setExif() method to
PelJpeg. The setExif() method is the non-trivial one: it will insert
the PelExif object at the correct position amoung the other sections.

  http://tinyurl.com/ve6nu


-- 
Martin Geisler  ---  <[EMAIL PROTECTED]>  ---  http://mgeisler.net

Read, write, create Exif data in PHP with PEL:       http://pel.sf.net
Take control of your webserver with PHP Shell:  http://phpshell.sf.net

Attachment: pgprijOsJw0NI.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PEL-devel mailing list
PEL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel

Reply via email to