Announcement

#1 2012-08-22 21:29:49

jonash
Member
2012-08-22
9

sync. metadata

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

 

#2 2012-08-22 21:38:00

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7044

Re: sync. metadata

Hi :-)

You can test add

$conf['show_exif_fields'] = array(
  'Make',
  'Model',
  'COMPUTED;ApertureFNumber',
  'UserComment'
  );

it's better ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2012-08-22 21:45:12

jonash
Member
2012-08-22
9

Re: sync. metadata

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

 

#4 2012-08-22 21:49:00

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7044

Re: sync. metadata

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 ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#5 2012-08-22 21:55:14

jonash
Member
2012-08-22
9

Re: sync. metadata

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

 

#6 2012-08-23 07:36:22

jonash
Member
2012-08-22
9

Re: sync. metadata

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

 

#7 2012-08-23 22:47:12

Gotcha
Former Piwigo Team
Pourrières (83) [FR]
2007-03-14
604

Re: sync. metadata

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

 

#8 2012-08-24 07:22:36

jonash
Member
2012-08-22
9

Re: sync. metadata

Hi,
I manage to make it work to some extent.. :)
If I do this:

Code:

$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

 

#9 2012-08-25 11:12:07

jonash
Member
2012-08-22
9

Re: sync. metadata

I finally manage to solve it with exiv2.. It makes the tags correctly, and it shows up fine on the web pages.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact