ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: StarGeek on September 25, 2023, 03:03:07 PM

Title: Best way to include data/functions from other parts of the source code
Post by: StarGeek on September 25, 2023, 03:03:07 PM
As an example, in the config file in this post (https://exiftool.org/forum/index.php?topic=15228.msg81856#msg81856), I copy/pasted the %latConv and %longConv from the XMP.pm file.

What would be the proper way include %latConv and %longConv?
Title: Re: Best way to include data/functions from other parts of the source code
Post by: Phil Harvey on October 10, 2023, 02:49:35 PM
Sorry for the delay in resonding.

You could include the XMP module:

include Image::ExifTool::XMP;
Then use %Image::ExifTool::XMP::latConv instead of the local %latConv.

- Phil
Title: Re: Best way to include data/functions from other parts of the source code
Post by: StarGeek on October 14, 2023, 01:17:17 PM
Dang, I had previously (https://exiftool.org/forum/index.php?topic=14831.msg80332#msg80332) asked this exact same question.  I need to update my notes.