From: Seth H. <set...@gm...> - 2005-10-13 12:17:38
|
>> I'm working on a phpgraphy (http://phpgraphy.sourceforge.net/) site >> (http://www.sethholcomb.com/photos/) and working on a method to >> rotate images (retaining EXIF info) under safe mode >> restrictions. Can't use jpegtrans (tho the server has it) because >> you can pipe from a command to a file. Would like to use gd but need Oops, typo. You *can't* pipe from the command to a file. >> to put EXIF details in the new file. This would be great for folks >> without exiftran or jpegtran (new version that supports exif) or >> imagemagick (due to safe mode or whatever). > >That would be a nice example to include with PEL --- please submit it >when you get it working! Ok--I hope so. >> Basically using exif_read_data to pull data, walk the array(s) for a >> supported value, then use $entry->addEntry. (actually check for it >> first and modify if it exists.) I need to work out which are >> PelEntryAscii and which are PelEntryByte, etc. > >You should be able to copy the entire PelExif object from the original >to the rotated image. The contents of the PelExif object will follow >automatically then. Then you would of course have to update the >Orientation, ImageWidth, and ImageHeight tags. > Ok, I look at that. Would need to grab the Exif object then destroy the original image to preserve RAM for working with the second image. >> Anyways, I've been looking for Exif write capability for a while. I >>wouldn't >> hurt to be able to correct the width, height etc after rotating (and/or >> resizing). >> >> Thanks and no sweat--I can always try on a different server with >> PHP5. All my sites with this host are 4.3.10 for now. > >It's not clear to me now if you have tried PEL on a PHP5 server? Ahhh! I got your other note. No, I didn't get that required 5. :shrugs: Oppsy. And No, I haven't tried on PHP5 enabled server yet. I need to talk to my host or find a way to load it on a server at work. ;-) Thanks for all the help and have a great day. --Seth |