Adding GPS tags to Panasonic RAW fails

Started by Archive, May 12, 2010, 08:54:08 AM

Previous topic - Next topic

Archive

[Originally posted by msbc on 2007-08-26 00:36:13-07]

I'm using Marc Rochkind's excellent ImageIngesterPro to add GPS data to my images on import. I have found that adding GPS data to RAW files from a Panasonic LMC-DX2 fails while the same exiftool command succeeds against a Canon 5D CR2 file. The example command is:
Code:
exiftool -m -overwrite_original_in_place -gps:GPSLatitudeRef=S -gps:GPSLatitude=37.798424 -gps:GPSLongitudeRef=E -gps:GPSLongitude=144.984772 -gps:GPSAltitudeRef=above -gps:GPSAltitude=23.142424 image.RAW

Archive

[Originally posted by exiftool on 2007-08-26 11:39:20-07]

Thanks for pointing out this oversight.  I have now fixed this and
exiftool 6.96 will have the ability to add new GPS information to
Panasonic RAW images.  If you want to test it before the official
release, I have uploaded a
6.96
pre-release
with this new ability.

- Phil

Archive

[Originally posted by msbc on 2007-08-26 13:12:09-07]

Phil,

Thanks for the VERY quick update! I tested this version and it did fix the problem.

While building 6.96 I did see a failure during 'make test' as follows:
Code:
t/PNG..............ok 1/3Undefined subroutine &Compress::Zlib::deflateInit called at /Users/Mark/Software/Safari/Image-ExifTool-6.96/blib/lib/Image/ExifTool/WritePNG.pl line 72.
t/PNG..............dubious                                                  
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED test 3
        Failed 1/3 tests, 66.67% okay

Failed Test Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/PNG.t        2   512     3    2  3
Failed 1/51 test scripts. 1/225 subtests failed.
Files=51, Tests=225, 36 wallclock secs (26.81 cusr +  2.79 csys = 29.60 CPU)
Failed 1/51 test programs. 1/225 subtests failed.
make: *** [test_dynamic] Error 255

This is on OSX 10.4.10 PPC.

Archive

[Originally posted by exiftool on 2007-08-27 12:27:04-07]

I'm glad this worked.  I'm puzzled about the failed test though.  Did you
install Compress::Zlib yourself?  I'm running OS X 10.4.10 on mactel,
and I don't see this problem.  If Compress::Zlib isn't installed, it isn't used.
And if it is installed properly, Compress::Zlib::deflateInit should be
available.

Also, the PNG code hasn't changed since version 6.90 which has been
tested
extensively
with no failures on many platforms including various
darwin versions.

- Phil

Archive

[Originally posted by msbc on 2007-08-28 06:15:10-07]

Maybe this is related to using the OSX Installer Package for 6.94 and then manually building/installing 6.96? Even though the 'make test' did produce the error I then performed 'sudo make install' but 'exiftool -ver' still showed 6.94??

Does the Package installer use a different destination to 'make install'?

Archive

[Originally posted by exiftool on 2007-08-28 11:20:25-07]

Ah.  This could be it.  

From the
installation
instructions
:

Code:
   Note: The OS X installations above place exiftool and its "lib" directory
    in /usr/bin, while the standard Unix "make install" described below puts
    exiftool in /usr/bin and the individual libraries in /Library/Perl/#.#.#,
    where "#.#.#" is the Perl version. If both sets of libraries exist, /usr/bin/lib
    takes precedence for exiftool, but /Library/Perl/#.## is the default for any
    other Perl scripts.

- Phil

Archive

[Originally posted by msbc on 2007-08-28 12:40:56-07]

Well, I removed /usr/bin/lib and /Library/Perl/5.8.6/Image and File but I still get the same error with make test. Are there any other bit's I didn't delete?

Archive

[Originally posted by exiftool on 2007-08-28 12:51:40-07]

No, that's it.  It was a good try but a long shot anyway since those
really shouldn't have affected the test results.

Can you show me the output (out.txt) from this command?:

Code:
perldoc Compress::Zlib > out.txt

- Phil

Archive

[Originally posted by msbc on 2007-08-29 03:16:49-07]

Phil,

I get the contents of a man page - is any part relevant or do you just need to know there was valid output?

Archive

[Originally posted by msbc on 2007-08-29 03:21:18-07]

Phil,

I see the same error from 'make test' for 6.95 so it suggests it's something in my environment.

Archive

[Originally posted by exiftool on 2007-08-29 12:23:12-07]

I just wanted to see if Compress::Zlib::deflateInit() is defined in the
man page.  If it is, then there must be something wrong with your
Zlib installation.  If not, then it may be a problem with an incompatible
version of Compress::Zlib (but this would surprise me).

- Phil

Archive

[Originally posted by msbc on 2007-08-29 13:35:37-07]

Phil,

Yes, deflateInit is defined. I'm not sure how I installed Zlib? I installed the PHP5 dist from entropy and have just re-installed the latest MacPorts and it's zlib package - still get the same error. Where should I start looking to validate the Zlib install?

Archive

[Originally posted by exiftool on 2007-08-29 13:46:11-07]

It may not be easy to validate the existing Zlib installation.  However, you
can download
Compress::Zlib
from CPAN
and try installing it to see if it fixes the problem. It should
install with the same set of commands as Image::ExifTool (or any other
CPAN module).

- Phil

Archive

[Originally posted by msbc on 2007-08-30 07:34:08-07]

Phil,

Well, finally able to install 6.95 but first had to install IO::Compress::Base, IO::Compress::Zlib and Compress::Zlib, with Compress::Raw::Zlib thrown in for good luck :-)

Archive

[Originally posted by exiftool on 2007-08-30 11:47:36-07]

I'm glad you got it working.  I'm pretty sure this problem was specific to
your installation since this is the first time I've seen it and I'm running
OS X 10.4.10 myself.

- Phil