Announcement

  •  » Extensions
  •  » [RV Maps & Earth] Synchronisation with exif information

#1 2010-07-05 22:35:17

roumano
Member
2010-07-05
13

[RV Maps & Earth] Synchronisation with exif information

Hi,

I have a problem with the [RV Maps & Earth] :

I'm put Gps info on file (with a very good perl script )

On my local machine :
exiftool 2010-07-03--11.46.44\ -\ .jpg
...
GPS Version ID                  : 2.2.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : East
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 11:46:53.07
GPS Img Direction Ref           : True North
GPS Img Direction               : 0
GPS Map Datum                   : WGS-84
GPS Date Stamp                  : 2010:07:03
...

But, after upload on the web server , On this URL :
XXXX/images/admin.php?page=plugin&section=rv_gmaps%2Fadmin%2Fadmin.php&tab=sync

Nothing is done if i click on Synchronize :

Synchronization of EXIF gps metadata information with the database.
Résultat de la synchronisation des méta-données

    * 0 éléments mis à jour dans la base de données
    * 22 images candidates à la synchronisation avec les méta-données
    * 0 erreurs survenues durant la synchronisation

It's the same if the checkbox "Simuler uniquement (aucun changement ne sera fait dans la base de données)"

I can put manualy the gps info on file via XXXX/images/admin.php?page=plugin&section=rv_gmaps%2Fadmin%2Fadmin.php&tab=edit & after the map is OK

But i can't make the synchronization, after investigation, i have a idea where is the problem :

I thinking it's a problem about reading exif information :

I have added a print_r on plugins/rv_gmaps/admin//admin_sync.php :
  foreach ($images as $image)
  {
    $exif = @read_exif_data( $image['path'] );
    print_r($exif);
    if ( empty($exif) )
      continue;
    $exif = array_intersect_key( $exif, array_flip( array('GPSLatitudeRef', 'GPSLatitude', 'GPSLongitudeRef', 'GPSLongitude') ) );

Pinrting the output of one file

Array ( [FileName] => 20100705194347-23aea213.jpg [FileDateTime] => 1278351828 [FileSize] => 93297 [FileType] => 2 [MimeType] => image/jpeg [SectionsFound] => COMMENT [COMPUTED] => Array ( [html] => width="450" height="600" [Height] => 600 [Width] => 450 [IsColor] => 1 ) [COMMENT] => Array ( [0] => CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 95 ) )

I don't see any information about Gps ...

RV Maps & Earth need a other extension for read on exif ?


Php Info :

PHP Version 5.2.13-pl0-gentoo eint :

exif
EXIF Support     enabled
EXIF Version     1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $
Supported EXIF Version     0220
Supported filetypes     JPEG,TIFF


Also, on a printing view, piwigo can display some exif info :

Exemple http://roumano.com/images/picture.php?/21/category/2
EXIF Metadata
Make     Canon
Model     Canon PowerShot A40
DateTimeOriginal     2010:07:04 11:09:15
ApertureFNumber     f/8.0

Offline

 

#2 2010-07-05 23:52:52

tosca
Former Piwigo Team
Cévennes (France)
2006-09-23
567

Re: [RV Maps & Earth] Synchronisation with exif information

I've notified the plugin's author.


My galleries : Photos, Watercolours, Recipes

Offline

 

#3 2010-08-13 16:25:35

mvroosen
Member
Netherlands
2009-06-14
45

Re: [RV Maps & Earth] Synchronisation with exif information

I got the same problem with my installation! So i´m really hoping there is a solution for us.

Thanks in advance
l
Marco.

Offline

 

#4 2010-09-24 03:11:47

Bogdan
Guest

Re: [RV Maps & Earth] Synchronisation with exif information

I subscribe to what it has been said before me. Synchronization with EXIF does not work it just prints the number of pictures which have to be synchronized and puts the check mark on simulation.

I have the latest plugin version  2.1a and piwigo 2.1.2

Edit works, but geotagging manually 2000 pictures is not something anyone would do, specially when the information is already in the metadata of each picture.


I believe that it needs to be fixed. I am a Python guy otherwise I would try to fix it myself, but PHP is not something I know.

The availability of this plugin is what attracted me towards piwigo. I really hoe that it can be fixed

Bogdan

 

#5 2010-09-24 05:26:37

roumano
Member
2010-07-05
13

Re: [RV Maps & Earth] Synchronisation with exif information

I choose PiwiGo for this extension and it don't work and never have a feedack after 2months and half waiting !
If need more information or need to test something, i here

Offline

 

#6 2010-09-25 16:09:54

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13200

Re: [RV Maps & Earth] Synchronisation with exif information

I see what the problem is :-/

You uploaded the photo with the web form in the administration panel and unfortunately, it removes the EXIF/IPTC metadata from the "resized" photo, see [Forum, post 115831 by plg in topic 15958] [plugin] Advanced Metadata

The solution would be that [extension by rvelices] RV Maps & Earth reads EXIF/IPTC in the high definition version of the photo. (or that you upload with pLoader but it means reuploading all your photos). In the next versions of Piwigo, I will try to avoid the removal of EXIF/IPTC from the web size version of the photo.

I notify rvelices about this problem and we'll see who add this feature in the plugin.

Offline

 

#7 2010-09-25 19:00:58

roumano
Member
2010-07-05
13

Re: [RV Maps & Earth] Synchronisation with exif information

So, if i instersand correctly , with if use upload from uploading, it's will be work's correctly ?

Offline

 

#8 2010-09-26 01:28:08

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13200

Re: [RV Maps & Earth] Synchronisation with exif information

roumano wrote:

So, if i instersand correctly , with if use upload from uploading, it's will be work's correctly ?

I'm not 100% sure I understand your question correctly :-/ There are 2 solutions to make this feature work correctly:

1) use another method to add photos (FTP+synchronization or Piwigo Uploader will be fine)

2) wait for an improvement on [extension by rvelices] RV Maps & Earth : your GPS metadata are not lost, they are just invisible to the plugin in its current version

Offline

 

#9 2010-09-26 11:03:20

roumano
Member
2010-07-05
13

Re: [RV Maps & Earth] Synchronisation with exif information

Ok,

For the 2), do you have idea aout how many time it will be take ?  (for me, it's a important bug, i think !)

Other question may be related :
A question about this, my photo are not physicaly turn but it's on the exif information : It's the same bug why i have a lag about 90° on it ?
For exemple: http://roumano.com/images/picture.php?/236/category/16

Also, do you have a idea

For the 1)
    - Ftp + synchronisation is annoying and take long time and especially modify the structure of directory in the web site, what i don't like
    - Uploader on Linux is chaotic on install it ! nothing stabilized. any improvement in this area in a shot terme ?

Offline

 

#10 2010-09-27 11:49:44

rvelices
Piwigo Team
2005-12-29
1960

Re: [RV Maps & Earth] Synchronisation with exif information

I will add to maps&earth the possibility to use the high definition image if required
In the meantime you can also use exiftool to manually copy the gps from high definition ( Something like -r -ext jpg -overwrite_original -tagsFromFile %d/pwg_high/%f.%e ) and then resync ...

Offline

 

#11 2010-09-27 22:46:47

roumano
Member
2010-07-05
13

Re: [RV Maps & Earth] Synchronisation with exif information

Thanks you for the trick, now it working as expected

Offline

 

#12 2010-09-27 22:48:04

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13200

Re: [RV Maps & Earth] Synchronisation with exif information

I'm also performing some test to use ImageMagick instead of GD to resize photos on server side, this way we should avoid automatic removal of EXIF/IPTC metadata.

Offline

 

#13 2012-09-25 19:41:05

roumano
Member
2010-07-05
13

Re: [RV Maps & Earth] Synchronisation with exif information

Hi,

RV Maps & Earth is not working anymore on my up-2-date piwigo.

A available picture : http://roumano.com/images/picture.php?/2217/category/69

On this page, we can see Gps Info : (so gps data are on exif information )
Latitude :     41° 22' 55.75"
Longitude :     2° 11' 41.20"

But on the admin of piwigo, sync directory for rv maps (simulate or not simulate give the same thing :

    0 photos mises à jour dans la base de données
    62 photos candidates à la synchronisation avec les méta-données
    0 erreurs survenues durant la synchronisation

Can anyone help me ?

Offline

 

#14 2012-09-26 16:40:41

roumano
Member
2010-07-05
13

Re: [RV Maps & Earth] Synchronisation with exif information

Hi,

I just have tested the new revision make today "2.4.d" : same thing.

I have try to upload a picture manualy and when it's uploaded, i have see warning, it's maybe related :

Warning: exif_read_data(20120926163607-c2e91b94.jpg) [exif_read_data]: Illegal IFD size: 2 + x2700*12 = x1D402 > xAD06 in /var/www/roumano.com/htdocs/images/admin/include/image.class.php on line 244

Warning: exif_read_data(20120926163607-c2e91b94.jpg) [exif_read_data]: Process tag(x8692=UndefinedTa): Illegal format code 0x0700, suppose BYTE in /var/www/roumano.com/htdocs/images/admin/include/image.class.php on line 244

Warning: exif_read_data(20120926163607-c2e91b94.jpg) [exif_read_data]: Process tag(x8692=UndefinedTa): Illegal pointer offset(xBAAF0000 + x8010000 = xC2B00000 > xB174) in /var/www/roumano.com/htdocs/images/admin/include/image.class.php on line 244

Offline

 
  •  » Extensions
  •  » [RV Maps & Earth] Synchronisation with exif information

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact