On Tuesday 20 April 2004 01:18 am, Frank Sorenson wrote:
> On Mon, 19 Apr 2004, James Nickerson said:
> > I would like to preserve the date/time of photos I upload to a server
> > with something like the following html form:
>
> I don't believe that uploading a file like this will preserve the file
> time and date.  You can always _set_ the file time and date (using touch),
> but I think that you'll lose the information in the upload.

        That's too bad. I was hoping there was a standard way of preserving it.

> You might look into extracting the time and date out of the file itself.
> Many digital cameras store this sort of information inside the file, so if
> you're uploading pictures from a digital camera, you can easily get the
> information back out using exif_read_data().  If you still want to set the
> file date and time, PHP has touch() as well.

        Yes indeed. My camera stores all sorts of nifty information in the exif 
header, and I even converted the ugly parsing routines I was using initially 
with command-line utilities to a call to exif_read_data(), which has proven 
very nice indeed. I've got photo upload for images with exif info working 
seamlessly -- I was just wanting a backup for the many images that are 
foolishly without such. I figured the time stamp was the next best thing as 
far as automatic time reading is concerned.  
        I think the exif standard and its implementation is a great idea. I was 
thrilled when I found out my camera automatically tags the date and time to 
every picture I take, in addition to all sorts of other bits of info that are 
mostly useless to me but very cool. Back in the day, your only option was to 
have your camera maul your expensive chemically stored photo by inextricably 
splurging a tacky date across the negative. I just wish I could make php 
extract the exif thumbnail properly on the fly -- I've pretty much given up 
on that and just pull it off and store it permanently as the photo's entered.

        Thanks for the tips.

> Frank
> ---------------------------------------------------------------------------
> Frank Sorenson - KD7TZK
> Systems Manager, Computer Science Department
> Brigham Young University
> [EMAIL PROTECTED]


---------------
James Nickerson
The deep south

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to