"Andre M. Winter - Carto.net" <[EMAIL PROTECTED]> writes:

> hi,
>
> this is only a PEL related question.
>
> i am editing exif data from uploaded images and i am generating
> thumbnails and other sizes form that same images with functions
> relying on imagecopyresampled(). the pity with that is that it
> ignores *all* header info (see
> <http://www.geotrace.net/pix/a666/06_bremgarten_railway_bridge.jpeg>)
> for an example). i know i could use PEL to tag all those images
> again, but aren't there PHP-bases functions that include image
> headers on resize/resample?

I don't think so, or at least I've never seen such a function.  But
it's a good idea!

Writing such a function with PEL shouldn't be too much trouble and
would be a great example...  If you already have such code, then
please submit a patch at SourceForge, if not, then you'll have to wait
until I get to look at it --- it's exam season right now...

Some thoughts: Writing the headers back unchanged would probably be
okay for most things, but a more sophisticated function would adjust
tags like width and height, and maybe the digitized timestamp (maybe,
I don't remember the exact conditions for updating it).

-- 
Martin Geisler                                     GnuPG Key: 0x7E45DD38

PHP Exif Library      |  PHP Weather             |  PHP Shell
http://pel.sf.net/    |  http://phpweather.net/  |  http://mgeisler.net/
Read/write Exif data  |  Show current weather    |  A shell in a browser

Attachment: pgp7B3gWIj5sC.pgp
Description: PGP signature

Reply via email to