I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-08-26 00:36:13-07 by msbc
Adding GPS tags to Panasonic RAW fails
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:
exiftool -m -overwrite_original_in_place -gps:GPSLatitudeRef=S -gps:GPSLatitude=37.798424 -gps:GPSL +ongitudeRef=E -gps:GPSLongitude=144.984772 -gps:GPSAltitudeRef=above -gps:GPSAltitude=23.142424 im +age.RAW
Direct Responses: 5954 | Write a response
Posted on 2007-08-26 11:39:20-07 by exiftool in response to 5952
Re: Adding GPS tags to Panasonic RAW fails
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
Direct Responses: 5956 | Write a response
Posted on 2007-08-26 13:12:09-07 by msbc in response to 5954
Re: Adding GPS tags to Panasonic RAW fails
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:
t/PNG..............ok 1/3Undefined subroutine &Compress::Zlib::deflateInit called at /Users/Mark/So +ftware/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.
Direct Responses: 5962 | Write a response
Posted on 2007-08-27 12:27:04-07 by exiftool in response to 5956
Re: Adding GPS tags to Panasonic RAW fails
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
Direct Responses: 5968 | Write a response
Posted on 2007-08-28 06:15:10-07 by msbc in response to 5962
Re: Adding GPS tags to Panasonic RAW fails
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'?
Direct Responses: 5969 | Write a response
Posted on 2007-08-28 11:20:25-07 by exiftool in response to 5968
Re: Adding GPS tags to Panasonic RAW fails
Ah. This could be it.

From the installation instructions:

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
Direct Responses: 5970 | Write a response
Posted on 2007-08-28 12:40:56-07 by msbc in response to 5969
Re: Adding GPS tags to Panasonic RAW fails
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?
Direct Responses: 5971 | Write a response
Posted on 2007-08-28 12:51:40-07 by exiftool in response to 5970
Re: Adding GPS tags to Panasonic RAW fails
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?:

perldoc Compress::Zlib > out.txt

- Phil
Direct Responses: 5978 | Write a response
Posted on 2007-08-29 03:16:49-07 by msbc in response to 5971
Re: Adding GPS tags to Panasonic RAW fails
Phil, I get the contents of a man page - is any part relevant or do you just need to know there was valid output?
Direct Responses: 5979 | Write a response
Posted on 2007-08-29 03:21:18-07 by msbc in response to 5978
Re: Adding GPS tags to Panasonic RAW fails
Phil, I see the same error from 'make test' for 6.95 so it suggests it's something in my environment.
Direct Responses: 5984 | Write a response
Posted on 2007-08-29 12:23:12-07 by exiftool in response to 5979
Re: Adding GPS tags to Panasonic RAW fails
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
Direct Responses: 5985 | Write a response
Posted on 2007-08-29 13:35:37-07 by msbc in response to 5984
Re: Adding GPS tags to Panasonic RAW fails
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?
Direct Responses: 5986 | Write a response
Posted on 2007-08-29 13:46:11-07 by exiftool in response to 5985
Re: Adding GPS tags to Panasonic RAW fails
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
Direct Responses: 5992 | Write a response
Posted on 2007-08-30 07:34:08-07 by msbc in response to 5986
Re: Adding GPS tags to Panasonic RAW fails
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 :-)
Direct Responses: 5994 | Write a response
Posted on 2007-08-30 11:47:36-07 by exiftool in response to 5992
Re: Adding GPS tags to Panasonic RAW fails
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
Direct Responses: Write a response