Announcement

#1 2016-08-05 23:03:24

mrcolj
Member
2015-05-22
20

EXIF GPS data not read

Hey guys!

First off, I'm on current Piwigo (2.8.2).

I asked this in the [Github] piwigo-openstreetmap issue #109, but apparently it should have been here.

I just uploaded 40 photos.  I've been using piwigo for at least a year and love it and have had no problems.  Then a moment ago, after a few photos, it imported the rest with no GPS data.  The rest of the EXIF is still there, just no pins on the map.  I deleted and reimported the photos, same thing.  I added the GPS data manually on one and it worked fine.  I then uploaded a different file with the Piwigo mobile app, and same thing, no GPS data.

I have confirmed that the originals all have GPS EXIF data, all taken off the same phone.  Actually the one I added in manually I looked at the original's EXIF data to put it into PWG, so it's there.  But when I uploaded it, it was stripped.  The other exif data, at least the date and time, were still there--but the GPS data shows as not being there in PWG.

xbgmsharp asked for an example of one that's working and one that isn't.
1. working after import - outside my office window at 6pm are 50+ Pokemon GO players every night...
2. not working after import - at a drive in movie...
3. working, added manually - my kids waiting for the drive-in movie to start...

Perhaps notably, the only one from that folder that worked was the panorama, so maybe the excessive size or dimensions (it was originally 15 MB and 25-something megapixels) broke it.  If you go into the previous folder (June 2016), all of those worked, and in the August folder none of them worked.

Attached is a screenshot of the plugins I have installed. I don't think I've changed anything lately, but I may have and not remember, or of course they all get updated so there may be a compatibility thing there...

Last edited by mrcolj (2016-08-05 23:32:54)

Offline

 

#2 2016-08-14 20:11:47

zero0cool
Member
2016-08-14
4

Re: EXIF GPS data not read

I've had the same issue and troubleshooted this. In my case, the PHP built-in function @exif_read_data apparently stops reading EXIF data if maker notes are present. See this link: http://u88.n24.queensu.ca/exiftool/foru … pic=4253.0

As soon as I remove the maker notes (for example, with exiftool), GPS data is read and displayed correctly by piwigo.

Hope this helps

Offline

 

#3 2016-08-15 19:35:53

eliz82
Member
Romania
2016-04-27
281

Re: EXIF GPS data not read

zero0cool wrote:

I've had the same issue and troubleshooted this. In my case, the PHP built-in function @exif_read_data apparently stops reading EXIF data if maker notes are present. See this link: http://u88.n24.queensu.ca/exiftool/foru … pic=4253.0

As soon as I remove the maker notes (for example, with exiftool), GPS data is read and displayed correctly by piwigo.

Hope this helps

It definitely helps, thanks man.
I have the same problem and I wonder why RV Map plugin show the photos on the map only for ~5% of my pictures. Now I begging to understand, usually my pictures have "makerdata". Maybe that 5% don't have.

I already asked Piwigo Team to use a library for reading exif like all other major gallery software does (Zenphoto, Gallery2, Gallery3, Coppermine, etc). Piwigo is the only one using the PHP built-in function which is very basic and buggy. Now it seems it even worse that I previously thinked.

Last edited by eliz82 (2016-08-15 19:36:56)

Offline

 

#4 2016-08-15 21:24:01

eliz82
Member
Romania
2016-04-27
281

Re: EXIF GPS data not read

I just used exiftool to strip makernotes data.
Then made a Piwigo quick sincronize. Now the GPS data is correctly read by Piwigo , and the pictures GPS data appear in RV Maps plugin.
Side effect: I lost the LensId/Lensname from exif because that info is in makerdata (for exif 2.2).
So after the GPS data is added to database i putted the old photos back to have the LensId/LensName in the exif.

Code:

Command to delete makernotes:
exiftool -makernotes:all= -ext jpg -r *

-ext jpg :: means that this apply to all "jpg" extension, i think this is case sensitive, you may have JPG
-r *  :: apply recursively (an all directories and subdirectories)

Command to restore the old photos:
exiftool -restore_original -ext jpg -r *

Last edited by eliz82 (2016-08-15 21:28:37)

Offline

 

#5 2016-09-05 00:47:32

wittypluck
Member
2016-09-05
24

Re: EXIF GPS data not read

Hello,

I had the same issue and debugged it to the same problem (makernotes in exif).
I found a bug in PHP bug tracker which seems to be the cause of the issue :
https://bugs.php.net/bug.php?id=72682

I was using php 7.0.8. An upgrade to php 7.0.10 fixed the problem for me.

For ubuntu 16.04 I used this PPA :
https://launchpad.net/~ondrej/+archive/ubuntu/php

I'll add the same comment in Github issue #520 as it seems to be the same issue :
[Github] Piwigo issue #520

Hope it helps !

Offline

 

#6 2016-09-05 16:40:17

eliz82
Member
Romania
2016-04-27
281

Re: EXIF GPS data not read

wittypluck wrote:

An upgrade to php 7.0.10 fixed the problem for me.
Hope it helps !

It not help.
php 7.x market share is insignificant. they need to fix this in php 5.4.x , 5.5.x , 5.6.x

Offline

 

#7 2016-09-14 00:15:59

pewe
Member
2012-03-16
439

Re: EXIF GPS data not read

I have removed the Makernotes from the photos - but still Piwigo does not pick up the GPS data.

My shared host is running PHP 7.0.6.

It is so frustrating because I used Piwigo for a time until a couple of years ago when I had to give up my hosted contract - and back then everything worked like a charm and I had all the photos located on the Map (RVMap plug-in) after having spent a long time adding the geocoding to the actual photos.

Now it seems I may have to manually re-geocode them all again in Piwigo.

Last edited by pewe (2016-09-14 17:44:11)

Offline

 

#8 2016-09-15 21:55:52

wittypluck
Member
2016-09-05
24

Re: EXIF GPS data not read

eliz82 wrote:

wittypluck wrote:

An upgrade to php 7.0.10 fixed the problem for me.
Hope it helps !

It not help.
php 7.x market share is insignificant. they need to fix this in php 5.4.x , 5.5.x , 5.6.x

It seems to be fixed in 5.6.25 too :
https://bugs.php.net/bug.php?id=72772

and maybe 5.5.38 :
https://secure.php.net/ChangeLog-5.php#5.5.38

There are lots of bugs open in PHP bug tracker for this issue since July :
https://bugs.php.net/search.php?cmd=dis … der_by=ts1

Offline

 

#9 2016-09-15 22:14:40

pewe
Member
2012-03-16
439

Re: EXIF GPS data not read

As I mentioned in my post, my host runs php 7.0.6 - and in Piwigo does not import the GPS settings

however

read my post here ( http://piwigo.org/forum/viewtopic.php?p … 07#p164607) and see why I am now even more confused.

Offline

 

#10 2016-09-15 22:36:06

pewe
Member
2012-03-16
439

Re: EXIF GPS data not read

I just discovered I have the ability to change the PHP version in my control panel on my shared server and have now tried V5.5.35, V5.6.21, V5,4.45, V5.3.29 and V5.2.17 (the only choices I have) as well as V7.0.6 - and Piwigo will not extract the GPS data in any of these versions.

Offline

 

#11 2016-09-15 22:45:59

wittypluck
Member
2016-09-05
24

Re: EXIF GPS data not read

It won't help much, but I tried sending your image from your other post to my gallery : I get the correct GPS location.
Piwigo : 2.8.2 PHP : 7.0.10

Have you checked in the administrator panel that your piwigo is really using those different versions of php ?

Offline

 

#12 2016-09-15 22:57:26

pewe
Member
2012-03-16
439

Re: EXIF GPS data not read

Yes - I look at PHPInfo each time I change the version to confirm it.

Here is a link to another photo which has GPS data that does not get added in any of the versions listed - could you try that in V7.0.10

http://pewe.uk/fotos/picture.php?/1914/category/14

Thanks

Offline

 

#13 2016-09-15 23:13:50

wittypluck
Member
2016-09-05
24

Re: EXIF GPS data not read

Yes it works too...

Offline

 

#14 2016-09-16 00:58:23

pewe
Member
2012-03-16
439

Re: EXIF GPS data not read

Thanks.

Could I be a pain and ask you to try one other if you have the time.

http://pewe.uk/fotos/picture.php?/1916/category/13

Thanks.

Offline

 

#15 2016-09-16 12:00:44

wittypluck
Member
2016-09-05
24

Re: EXIF GPS data not read

Works too!
(I visited Aberdeen this summer, nice City!)

Offline

 

Board footer

Powered by FluxBB

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