Postscript: my hosting service does have exif support enabled in php. Output of exif section of phpinfo:
exif
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.173.2.5.2.25 2008/03/12 17:33:14 iliaa Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF
Hors ligne
I just found this thread: http://forum.phpwebgallery.net/viewtopi … 70&p=1 where I found how to get at the metadata. Slowly, I learn! :-)
part of the metadata.php output:
no IPTC information EXIF Fields in sample.jpg Array ( [FileName] => sample.jpg [FileDateTime] => 1229315052 [FileSize] => 182652 [FileType] => 2 [MimeType] => image/jpeg [SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, COMMENT, EXIF, INTEROP, MAKERNOTE [COMPUTED] => Array ( [html] => width="800" height="600" [Height] => 600 [Width] => 800 [IsColor] => 1 [ByteOrderMotorola] => 0 [CCDWidth] => 1mm [ApertureFNumber] => f/3.5 [UserComment] => [UserCommentEncoding] => UNDEFINED [Thumbnail.FileType] => 2 [Thumbnail.MimeType] => image/jpeg ) [Make] => Canon [Model] => Canon PowerShot G9 [Orientation] => 1 [XResolution] => 124/1 [YResolution] => 124/1 [ResolutionUnit] => 2 [DateTime] => 2008:12:12 21:27:06 [YCbCrPositioning] => 1 [Exif_IFD_Pointer] => 184 [THUMBNAIL] => Array ( [Compression] => 6 [XResolution] => 180/1 [YResolution] => 180/1 [ResolutionUnit] => 2 [JPEGInterchangeFormat] => 3508 [JPEGInterchangeFormatLength] => 2935 ) [COMMENT] => Array ( [0] => Putting it back together, and trying to figure out where the two leftover screws should have gone. )
So, apparently it is called "comment" not caption. Or UserComment? Or COMMENT? Or what? I'm confused. I tried "Comment" and "UserComment" instead of "Caption" in the show-exif-fields part. No comment-related field shows up in the Synchronize window, however, so I'm not doing that right.
When I tried adding to use-exif-mapping:
$conf['use_exif_mapping'] = array( 'date_creation' => 'DateTimeOriginal', 'caption' => 'UserComment' //changed. line added. pwg blew up );
The gallery blew up rather spectacularly. (At that point the show_exif_fields did have " 'UserComment',"). So, obviously, that line is necessary for something to happen. It just needs to be right ... :D
Dernière modification par quixote (2008-12-15 05:53:52)
Hors ligne