You are here: Re: Sort by date picture taken « PHP Programming Language « IT news, forums, messages
Re: Sort by date picture taken

Posted by petersprc on 06/16/07 21:41

Not sure, explorer may be falling back to a different value in the
absence of DateTimeOriginal. Btw, this tool can set the
DateTimeOriginal field: http://www.exifpro.com/Help/ToolDateTime.htm

On Jun 16, 6:59 am, "brandonc...@gmail.com" <brandonc...@gmail.com>
wrote:
> Hi,
>
> I am displaying a bunch of pictures on my website and I would like to
> sort them by a Date Picture Taken key. I have looked into exif data
> and I wrote a little code that just prints all the keys and their
> contents.
> Code:
> $file = "MyPicture.jpg";
> $exif = read_exif_data ("$file");
> while(list($k,$v)=each($exif))
> {
> echo "$k: $v<br>\n";
>
> }
>
> For date picture taken, All I get is:
>
> FileName: MyPicture.jpg
> FileDateTime: 1180959961
> ...
> ExifVersion: 1220
> DateTimeOriginal:
> DateTimeDigitized:
> CompressedBitsPerPixel: 892484151/3289658
> ...
>
> nothing as you can see. Here is the info from phpinfo about my exif
> setup:
> exif
> EXIF Support enabled
> EXIF Version 1.4 $Id: exif.c,v 1.173.2.5 2006/04/10 18:23:24 helly
> Exp $
> Supported EXIF Version 0220
> Supported filetypes JPEG,TIFF
>
> When I download the jpg, I can view/sort by the date picture taken
> using Windows Explorer.
>
> Does anyone know why I am not seeing the DateTimeOriginal information?
>
> If anyone knows a better way to sort by Date Picture Taken On, I'd
> love to hear it. Windows can do it so it must be in there somewhere.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация