ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: Wes on July 23, 2024, 04:27:49 PM

Title: Error: Different 'rdf:about' attributes not handled
Post by: Wes on July 23, 2024, 04:27:49 PM
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");
Title: Re: Error: Different 'rdf:about' attributes not handled
Post by: Phil Harvey on July 23, 2024, 08:28:52 PM
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
Title: Re: Error: Different 'rdf:about' attributes not handled
Post by: Wes on July 23, 2024, 10:21:31 PM
Thank you!  That fixed the problem.
Title: Re: Error: Different 'rdf:about' attributes not handled
Post by: Wes on July 24, 2024, 08:56:33 AM
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.
Title: Re: Error: Different 'rdf:about' attributes not handled
Post by: Phil Harvey on July 24, 2024, 09:01:34 AM
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