Announcement

#1 2022-08-01 11:30:08

Maxbeta
Member
2022-08-01
7

ITPC Description problem

Hi

I'm new to this software and need some help.

I wanted to add ITPC data so I added this to config.inc.php

$conf['show_iptc'] = true;
$conf['use_iptc'] = true;

$conf['show_iptc_mapping'] = array(
  'iptc_creator'         => '2#080',
  'iptc_title'           => '2#005',
  'iptc_headline'        => '2#105',
  'iptc_description'     => '2#120',
  'iptc_keywords'        => '2#025',
  );

The images I tested with do not have any data added as "description" yet the Piwigo page adds "ASCII" as the image description.

https://i.ibb.co/g7dvnHh/description.jpg


Environment
Piwigo 12.3.0 Check for upgrade
Operating system: Linux
PHP: 7.4.30 (Show info) [2022-08-01 11:21:22]
MySQL: 5.5.5-10.5.16-MariaDB-cll-lve [2022-08-01 11:21:22]
Graphics Library: ImageMagick 7.1.0-20
Cache size 5.50 MB right now Refresh

Activated plugins
Admin Tools
Language Switch
LocalFiles Editor

Offline

 

#2 2022-08-01 21:07:19

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

Re: ITPC Description problem

Hi :-)

with [extension by ddtddt] Read Metadata you see IPTC ?


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 2022-08-01 22:23:48

Maxbeta
Member
2022-08-01
7

Re: ITPC Description problem

I installed the plugin but can't see that anything changed.

I would like to use the copyright field in ITPC as the Photographer info for visitors.

Offline

 

#4 2022-08-02 07:42:15

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

Re: ITPC Description problem

Hi :-)

Edit photo

clic on show metadata

do you see your metadata ?


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 2022-08-02 08:12:47

Maxbeta
Member
2022-08-01
7

Re: ITPC Description problem

At this adress i see the ”standard” data
/admin.php?page=photo-19-properties

I see the full metadata here
/admin.php?page=plugin-read_metadata

Offline

 

#6 2022-08-03 08:12:36

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

Re: ITPC Description problem

Hi :-)

paste part IPTC for one photo


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

 

#7 2022-08-03 09:23:07

Maxbeta
Member
2022-08-01
7

Re: ITPC Description problem

I can show it with three images.

The photographer is adding his name to "Created by" and "Copyright text".

I would like to have that info shown as photographer in Piwigo.

https://i.ibb.co/YdNs2fm/itpc.jpg

https://i.ibb.co/6nd7jX5/admin.jpg

https://i.ibb.co/02fDJB7/visitor.jpg

Offline

 

#8 2022-08-03 14:31:09

erAck
Only trying to help
2015-09-06
2054

Re: ITPC Description problem

Make sure you have a correct use_iptc_mapping in your local config, it should be

Code:

$conf['use_iptc_mapping'] = array(
  'keywords'        => '2#025',
  'author'          => '2#080',
  'name'            => '2#005',
  'comment'         => '2#120'
  );

Note that the default include/config_default.inc.php has
  'author'          => '2#122',
which is wrong, 2#122 is the author of the description, not the photo's author.
See also [Forum, post 168381 by executive in topic 28102] use_iptc_mapping for filtering and batch processing permissions.

Also note that
'date_creation'   => '2#055'
should not be in there as the IPTC date is only date without time and would override EXIF DateTime.


Running Piwigo at https://erack.net/gallery/

Offline

 

#9 2022-08-03 14:48:51

erAck
Only trying to help
2015-09-06
2054

Re: ITPC Description problem


Running Piwigo at https://erack.net/gallery/

Offline

 

#10 2022-08-03 16:03:43

Maxbeta
Member
2022-08-01
7

Re: ITPC Description problem

Thanks.

My setup now looks like this. I removed the cache in my browser but still can't see that anything changed.

Code:

$conf['use_exif_mapping'] = array(
  'date_creation'        => 'DateTimeOriginal',
  'comment'              => 'UserComment',
  );

$conf['show_iptc'] = true;
$conf['use_iptc'] = true;

$conf['show_iptc_mapping'] = array(
  'iptc_title'           => '2#005',
  'iptc_byline'          => '2#080',
  'iptc_byline_title'    => '2#085',
  'iptc_byline_contact'  => '2#118',
  'iptc_keywords'        => '2#025',
  'iptc_caption'         => '2#120',
  'iptc_caption_writer'  => '2#122',
  'iptc_country_code'    => '2#100',
  'iptc_country'         => '2#101',
  'iptc_city'            => '2#090',
  'iptc_copyright'       => '2#116'
  );

$conf['use_iptc_mapping'] = array(
  'keywords'        => '2#025',
  'author'          => '2#080',
  'name'            => '2#005',
  'comment'         => '2#120',
  'country'         => '2#101',
  'copyright'       => '2#116'
  );

Offline

 

#11 2022-08-04 22:48:19

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

Re: ITPC Description problem

Hi :-)

have you "force"Synchronize metadata" in your Piwigo ?


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

 

#12 2022-08-04 22:59:20

Maxbeta
Member
2022-08-01
7

Re: ITPC Description problem

Yes I used the synchronise in settings and also for individual images.

Offline

 

#13 2022-08-05 02:22:28

erAck
Only trying to help
2015-09-06
2054

Re: ITPC Description problem

The 'country' and 'copyright' keys in use_iptc_mapping don't make sense, unless you altered your piwigo_images table to contain those columns. I don't know what exactly happens if the metadata synchronization encounters undefined columns.


Running Piwigo at https://erack.net/gallery/

Offline

 

#14 2022-08-05 16:58:09

Maxbeta
Member
2022-08-01
7

Re: ITPC Description problem

Thanks. I changed that and synced again and now I can see the added field Photograph shown for visitors. Great!

I'm still looking for an answer about the ITPC "Description". I added a description to one JPG and it's show below the image for visitors.

But if I upload an image with no description the caption below say ASCII. It can be seen in an image earlier in this thread.

If possible I would like to show the file "title" below the image. It's also seen in the path above the image.

How can I do that?

https://i.ibb.co/4TDHr5M/file-name.jpg

Offline

 

Board footer

Powered by FluxBB

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