I extract metadata from files via the -X option (XML output).
ExifTool 9.78 on Windows.
For a file which reports:
<ExifIFD:ExposureCompensation>
<rdf:Description et:id='37380' et:table='Exif::Main'>
<et:desc>Exposure Compensation</et:desc>
<et:prt>+5/2</et:prt>
<et:val>2.5</et:val>
</rdf:Description>
</ExifIFD:ExposureCompensation>
the corresponding XMP metadata (created via the Exif2XMP ARGs files) reports
<XMP-exif:ExposureCompensation>
<rdf:Description et:id='ExposureBiasValue' et:table='XMP::exif'>
<et:desc>Exposure Compensation</et:desc>
<et:prt>+5</et:prt>
<et:val>+5/2</et:val>
</rdf:Description>
</XMP-exif:ExposureCompensation>
As far as I can see it, the XMP should also use "+5/2" for prt and 2.5 for val.
Arguments used to extract the data:
-overwrite_original
-tagsfromfile
c:\image.jpg
-all:all
-api
struct=2
-use
MWG
-@
exif2xmp.args
--Exif:rating
-@
iptc2xmp.args
-@
gps2xmp.args
c:\temp\imtEFD7E16C-7BF1-411F-8C03-B86ED1CF3795.xmp
-execute
-overwrite_original
-G
-X
-D
-t
-q
-q
-l
-fast
-all:all
-api
struct=2
c:\TEMP\IMTEFD7E16C-7BF1-411F-8C03-B86ED1CF3795.XMP
c:\image.jpg
-execute
If required, I can provide the sample JPEG after I've got permission from the photographer.
Thanks for pointing this out. XMP:ExposureCompensation wasn't accepting fractional values in the same way they are presented. This will be fixed in ExifTool 9.79.
- Phil
Great :)
And a Happy New Year to you and your family. And a BIG Thank You for ExifTool!