Error: Different 'rdf:about' attributes not handled

Started by Wes, July 23, 2024, 04:27:49 PM

Previous topic - Next topic

Wes

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");

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Wes


Wes

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.

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).