Skip Menu |

This queue is for tickets about the Image-MetaData-JPEG CPAN distribution.

Report information
The Basics
Id: 11950
Status: resolved
Priority: 0/
Queue: Image-MetaData-JPEG

People
Owner: Nobody in particular
Requestors: john [...] johnharveyphoto.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.14
Fixed in: 0.141



Subject: GPSLongitude field being dropped
When I tried the following code: my $hash_ref = $srcExif->get_Exif_data('GPS_DATA', 'TEXTUAL'); $destImage->drop_segments('METADATA'); $destImage->set_Exif_data( $hash_ref, 'GPS_DATA', 'ADD'); I lost the GPSLongitude in the destImage. blah:~/Play johnharvey$ uname -a Darwin blah.local 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC Power Macintosh powerpc blah:~/Play johnharvey$ perl -v This is perl, v5.8.1-RC3 built for darwin-thread-multi-2level
Subject: Also in 0.14
I just installed 0.14 - seems to suffer the same problem. John
Subject: (solved) GPSLongitude field being dropped
Hi, thanks for your bug report. This is a stupid error on my side; I was assuming that both longitudes and latitudes were limited to [0,90]. Indeed, longitudes can be as large as 180deg. I will correct this bug in next release (soon). For the time being, you can modify lib/Image/MetaData/JPEG/Tables.pm in the following way: replace my $SSR_latlong = sub { &$SSR_triplet( 90, @_); }; with my $SSR_latitude = sub { &$SSR_triplet( 90, @_); }; my $SSR_longitude = sub { &$SSR_triplet(180, @_); }; then replace the pseudo-regex $SSR_latlong in the $HASH_GPS_GENERAL hash for the following fields: (0x02) 'GPSLatitude' (use $SSR_latitude) (0x04) 'GPSLongitude' (use $SSR_longitude) (0x14) 'GPSDestLatitude' (use $SSR_latitude) (0x16) 'GPSDestLongitude' (use $SSR_longitude) Let me know if you have any problem. Best regards, Stefano Bettelli
From: John Harvey
Works perfectly! Thanks! John