Hi,
I have search the docs, even the french one without understanding much, but I cant find the solution.
I have images with info in the EXIF tags:
[ImageDescription] => Spanien 2012
[UserComment] => Sista bilden
and more of course.
I would like to have the field ImageDescription copied to "title", and UserComment copied to the descritption field.
I have tried to edit the config with "LocalFile editor". (Copied the IPTC entry more or less)
$conf['use_exif_mapping'] = array(
'keywords' => '2#025',
'date_creation' => '2#055',
'author' => '2#122',
'name' => '2#005',
'UserComment' => '2#120'
);
The date/creation is copied, but not UserComment. I guess 2#120 is something else, but I cant figure it out...
Any ideas?
Jonas
Offline
Hi :-)
You can test add
$conf['show_exif_fields'] = array(
'Make',
'Model',
'COMPUTED;ApertureFNumber',
'UserComment'
);
it's better ?
Offline
That was a fast replay :)
$conf['show_exif_fields'] = array(
'Make',
'Model',
'COMPUTED;ApertureFNumber',
'ImageDescription'
);
shows the ImageDescription correct. UserComment is show an empty row
Is it possible to get this into the "Title"?
Offline
jonash wrote:
Is it possible to get this into the "Title"?
where titlte ?
Title tab ? title gallery ? Title tag ? ...
And what want you in title ?
Offline
What I mean is that I want to take some EXIF data and put them into the "Image Description; the page where you can add title, creation date, tags, etc.
The exif tag "date_creation" is copied to this creation date on this page. So I thought I could copy other exif tags to one of these fields too.
I thought the array $conf['use_exif_mapping'] was for this purpose
Jonas
Offline
I have played a little with these things and this is the conclusion:
The images from my camera, Sony, DSLR-500, does not contain any IPTC tags. I can manually add these with PhotoMe, add records and values, and the values are moved into the Piwigo database when I do a "synchronize".
So the question is if it is possible to extract info from EXIF tags instead of the IPTC?
Jonas
Last edited by jonash (2012-08-23 13:38:11)
Offline
Hi jonash,
You can rename your picture on "sample.jpg" and put this file in ./piwigo/tools/
After, launch http://www.my-website.com/piwigo/tools/metadata.php
You have all for configure your Piwigo Gallery :-)
Offline
Hi,
I manage to make it work to some extent.. :)
If I do this:
$conf['use_exif_mapping'] = array( 'date_creation' => 'DateTimeOriginal', 'name'=> 'ImageDescription', 'comment'=> 'UserComment' );
the correct fields are inserted.
In "use_itpc_mapping" it says 'ImageDescription'=> '2#120', but ImageDescription is not a column in piwigo_image...
The new problems I get are these:
1)If have strange chars in a word, like Cadaqués, Småland .. the word is cut before the "strange char". I guess it has something to do with the database setting? UTF8? I cant access the database at the moment, but will check this evening.
2)In tools/metadata.php it says [UserComment] => Sista bilden
but the description gets as in the attached image. Some garbage before the "real" text.
Im not sure of how I added the information, but probalby with ExifManager.
Last edited by jonash (2012-08-24 07:37:49)
Offline
I finally manage to solve it with exiv2.. It makes the tags correctly, and it shows up fine on the web pages.
Offline