Announcement

#1 2020-12-01 12:46:25

Wallbert
Member
2020-12-01
8

Zero Geotagged Images?

I am trying to get the OpenStreetMap plugin working and my problem is that I have 0 geotagged images in my gallery (according to the OpenStreetMap's statistics section in the admin panel).

+ I have used the read metadata plugin and seen multiple photos with GPSLatitude and GPSLongitude values (the arrays)
+ I have added 'GPSLongitude;0' to $conf['show_exif_fields'] and seen the correct value on the photo page
+ I have tried using the EXIFTools GPS plugin
+ I have tried using the ImageMagick GPS plugin
+ I have tried re-synchronizing files after enabling each of these plugins
+ When I first installed Piwigo my test photos showed with maps... I'm not sure what changed.

I added photos to Piwigo by mounting my existing images folder under galleries, performing a synchronize action (which times out due to having 50,000+ photos... I'll have to ask about that next) and then creating virtual galleries that contain photos from my physical gallery.

Any thoughts on why I can't get piwigo to recognize the GPS data in my photos?

Piwigo 2.10.2
Operating system: Linux
PHP: 7.3.16
MySQL: 8.0.22
Graphics Library: ImageMagick 6.9.10-27

Offline

 

#2 2020-12-04 00:49:15

Wallbert
Member
2020-12-01
8

Re: Zero Geotagged Images?

I think I figured it out. I had the following line in my lcoal config file:

$conf['use_iptc'] = true;

As soon as I commented this out, synchronize started to pickup lat/long again.

Offline

 

#3 2020-12-13 12:34:20

Wallbert
Member
2020-12-01
8

Re: Zero Geotagged Images?

Well, removing that line solved the GPS coordinates problem, but now I can't get the IPTC keywords to show on the photo page.

Here are the lines in my local configuration file:

<code>
$conf['use_exif'] = true;

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

$conf['metadata_keyword_separator_regex'] = '/[,]/';
$conf['use_iptc'] = true;

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

$conf['use_iptc_mapping'] = array(
  'author'          => '2#080',
  'filename'        => '2#005',
  'keywords'        => '2#025',
  );
</code>

I have two questions:

1. How do I get Piwigo to read GPS coordinates and IPTC data? Do I have to map the GPS coordinate values?
2. How do I show the ImageDescription underneath the picture? (photo page and slideshow, I would like the description to be shown all the time)

Offline

 

#4 2020-12-13 22:59:50

Wallbert
Member
2020-12-01
8

Re: Zero Geotagged Images?

In looking closer, I realized that my synchronize log-text showed the following line:

Warning: [mysql error 1054] Unknown column 't1.filename' in 'field list'

So I deleted the IPTC mapping "'filename'        => '2#005'," and now I get lat/long and keywords.

My last metadata question is: how do I show the description under the picture (picture page and slideshow)?

Offline

 

#5 2020-12-14 12:36:30

erAck
Only trying to help
2015-09-06
2025

Re: Zero Geotagged Images?

In $conf['use_iptc_mapping'] having

  'comment'         => '2#120',

should work.

To also have the image's title / object name filled and displayed add

  'name'            => '2#005',


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

Offline

 

#6 2020-12-14 18:40:36

Wallbert
Member
2020-12-01
8

Re: Zero Geotagged Images?

comment worked exactly as I wanted, thanks!

Offline

 

Board footer

Powered by FluxBB

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