Hello Everyone,
I have a little problem.
My metadata XML is having an issue with the artist:
Like in this example:
<IFD0:PageNumber>1 0</IFD0:PageNumber>
<IFD0:Software>YooScan v1.7.6</IFD0:Software>
<IFD0:ModifyDate>2018:03:01 09:44:16</IFD0:ModifyDate>
<IFD0:Artist rdf:datatype="http://www.w3.org/2001/XMLSchema#base64Binary"> R29u52FsbyBBYnJldQ== </IFD0:Artist>
<IFD0:HostComputer>Windows 7 Ultimate Service Pack 1 Intel Xeon E5620 12GB RAM</IFD0:HostComputer>
<IFD0:Copyright>Tiago_Lima</IFD0:Copyright>
The scanner software allows me to input the artist metadata correctly, however the XML is present as above.
even if i use the simplest command to try to see if it was an input issue or something to do with specific characters the problem continues
if i change all the artists from what i had to me using a simple command like:
exiftool -artist=me C:\Users\Tiago.Lima\Desktop\XML
The problem continues
any and all input would be appriciated
Kind Regards,
Tiago Lima
Hi Tiago,
Let me see if I can decrypt your message.
Are you talking about the ExifTool -X output from metadata written by your scanner? If so, can you attach a small image which shows this problem. Metadata written correctly shouldn't do this. For example:
% exiftool a.jpg -artist=me
1 image files updated
% exiftool a.jpg -artist -X
<?xml version='1.0' encoding='UTF-8'?>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about='a.jpg'
xmlns:et='http://ns.exiftool.ca/1.0/' et:toolkit='Image::ExifTool 10.96'
xmlns:IFD0='http://ns.exiftool.ca/EXIF/IFD0/1.0/'>
<IFD0:Artist>me</IFD0:Artist>
</rdf:Description>
</rdf:RDF>
- Phil
Hello Phil,
The scanner has the option to insert metadata, however i have to change the artist metadata from all tiffs.
what is the correct command to overwrite that information?
I dont have the tiffs with me right now but as soon as i get to the office i can send you one
Hello again Phil,
Just solved the issue.
The problem was a single letter, the name of the artist has a Ç and for some reason in the artist tag that spells trouble.
In other tags i have that letter and no problem but in the artist name i had that issue.
Thanks for the assistance Phil
I'm glad you solved your problem, but I still can't reproduce your observations:
% exiftool a.jpg -artist=Ç
1 image files updated
% exiftool a.jpg -artist -X
<?xml version='1.0' encoding='UTF-8'?>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about='a.jpg'
xmlns:et='http://ns.exiftool.ca/1.0/' et:toolkit='Image::ExifTool 10.96'
xmlns:IFD0='http://ns.exiftool.ca/EXIF/IFD0/1.0/'>
<IFD0:Artist>Ç</IFD0:Artist>
</rdf:Description>
</rdf:RDF>
So it's not just the "Ç" that is causing this.
- Phil
Quote from: Phil Harvey on May 08, 2018, 07:32:36 AM
I'm glad you solved your problem, but I still can't reproduce your observations:
I could be wrong but I think it's his scanning software that is writing the tag in base64, not exiftool.
I think it is ExifTool that is generating Base64 because the value contains binary data (not just text). So the scanning software is writing some binary garbage in this field.
- Phil
Edit: Oh, I see. The scanning software is writing special characters using the Windows Latin character set instead of UTF-8 in the Artist value. You can deal with this by adding -charset exif=latin to your ExifTool command when reading the JPG file.