I wrote a program some time ago and it used to work. Now, when I try to run it I get this error:
[minor] Different 'rdf:about' attributes not handled
I am a novice at this so I need help understanding what that error is telling me and how to resolve it. Here is the code that produces the error:
use Image::ExifTool qw(:Public);
my $exifTool = Image::ExifTool->new;
$exifTool->SetNewValue("XMP-GPano:UsePanoramaViewer", 'True');
my $outfile = 'that.jpg';
my $retval = $exifTool->WriteInfo($outfile);
my $errorMessage = $exifTool->GetValue('Error');
print("$errorMessage\n");
The problem is the source file contains XMP with conflicting rdf:about attributes. ExifTool will change them to make them consistent. You can ignore the minor warning by setting the API IgnoreMinorErrors option.
- Phil
Thank you! That fixed the problem.
I am now curious how I would go about viewing the conflicting rdf:about attributes. I would like to better understand exactly what the problem is.
Run this command to extract the XMP from a FILE:
exiftool -xmp -b FILE > out.xmp
then take a look at out.xmp in a text editor. Look for the word "about".
- Phil