Posted on 2005-09-09 13:44:59-07 by dougpalmer
SetNewValue() Bug or Feature?
I think I have found a bug with the SetNewValue function. Calling:
$exifTool->SetNewValue('Rating', 1);
gives:
Tag 'Rating' does not exist
However, calling:
$exifTool->GetValue('Rating');
on a file with a rating of 1 returns 1.
Does anyone have a good explanation for this? Or is it simply a bug? Regards Doug
Direct Responses: 973 | Write a response
Posted on 2005-09-09 14:04:24-07 by exiftool in response to 972
Re: SetNewValue() Bug or Feature?
Hi Doug,

There is no pre-defined tag called "Rating", so ExifTool will report that the tag doesn't exist if you try to write it. If the tag isn't in the documentation, then you can't write it.

The confusion arises because ExifTool will extract information for some tags which are not pre-defined (in the XMP information for example). It would be useful to know where your "Rating" tag is found (run "exiftool -G1 -rating FILE" to see what group it is in). I haven't seen this tag used before.

Direct Responses: 974 | Write a response
Posted on 2005-09-09 14:34:07-07 by dougpalmer in response to 973
Re: SetNewValue() Bug or Feature?
Hi The Rating tag is added by Photoshop when you give an image a quality rating. I use it in my website for categorising images. I am extracting the data for old images from my database and trying to add it to the original images. Running "exif -G1 -rating" gives:
[XMP-xmp] Rating : 1
Regards Doug
Direct Responses: 975 | Write a response
Posted on 2005-09-09 15:08:04-07 by exiftool in response to 974
Re: SetNewValue() Bug or Feature?
Thanks for this information.

I have searched the web for this addition to the basic xmp schema, but can find no reference. I can (and will) add this new Rating tag (it will appear in version 5.63 when it is released), but it is possible that other tags have been added to the specification and it would be good to add support for these tags as well. Let me know if you discover any more XMP tags written by Photoshop that aren't documented in the ExifTool XMP Tag names.

Thanks.
Direct Responses: 976 | 979 | Write a response
Posted on 2005-09-09 15:16:15-07 by dougpalmer in response to 975
Re: SetNewValue() Bug or Feature?
Thanks

I will look forward to V5.63 and I will let you know if I find any other tags. I also really appreciate the work you put into supporting Olympus RAW files; there aren't many applications out there that support Olympus RAW. Even Olympus's own software doesn't show the metadata for 'Extenders'.

Thanks again for all your effort.
Regards
Doug
Direct Responses: Write a response
Posted on 2005-09-09 21:35:58-07 by leprish in response to 975
Re: SetNewValue() Bug or Feature?
The Rating tag has 5 possible values and there is also a Label tag with another 5 possible values Contact David Franzen at Adobe dfranzen@adobe.com for more information or ask at http://www.adobeforums.com/cgi-bin/webx?14@@.ef3ec0f
Direct Responses: 1016 | Write a response
Posted on 2005-09-19 22:43:12-07 by exiftool in response to 979
Re: SetNewValue() Bug or Feature?
Thanks for this information. I have contacted David Franzen, but he is making me wait until the new public XMP specification is made available. Until then, I have added Rating and Label with no restrictions on the values they can take except that Rating must be an integer. I will tighten the restrictions on these values after I see the new XMP spec.

This change will appear in ExifTool 5.63 which should be released within the week.

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.