#------------------------------------------------------------------------------
# File: MWG.pm
#
# Description: Metadata Working Group support
#
# Revisions: 2009/10/21 - P. Harvey Created
#
# References: 1) http://www.metadataworkinggroup.org/
#------------------------------------------------------------------------------
package Image::ExifTool::MWG;
use strict;
use vars qw($VERSION);
use Image::ExifTool qw(:DataAccess :Utils);
use Image::ExifTool::Exif;
$VERSION = '1.08';
# enable MWG strict mode by default
# (causes non-standard EXIF, IPTC and XMP to be ignored)
$Image::ExifTool::MWG::strict = 1 unless defined $Image::ExifTool::MWG::strict;
sub RecoverTruncatedIPTC($$$);
sub ListToString($);
sub StringToList($$);
sub OverwriteStringList($$$$);
# MWG Composite tags
%Image::ExifTool::MWG::Composite = (
GROUPS => { 0 => 'Composite', 1 => 'MWG', 2 => 'Image' },
VARS => { NO_ID => 1 },
NOTES => q{
The Metadata Working Group (MWG) recommendations provide a set of rules to
allow certain overlapping EXIF, IPTC and XMP tags to be reconciled when
reading, and synchronized when writing. The ExifTool MWG module is designed
to aid in the implementation of these recommendations. (See
L for the complete MWG technical
specifications.)
The table below lists special Composite tags which are used to access other
tags based on the MWG 2.0 recommendations. These tags are only accessible
when the MWG module is loaded. The MWG module is loaded automatically by
the exiftool application if MWG is specified as a group for any tag on the
command line, or manually with the C<-use MWG> option. Via the API, the MWG
module is loaded with "C