I use:
exiftool -exif:all -n -e -X -D P1000159.RW2
Configuration:
- latest ExifTool
- macOS Monterey (latest)
for fetching all exif data. But currently the export contains duplicated entries (i.e. Lens Model).
Is this maybe a bug in ExifTool?
You can download the sample image at: https://www.lemkesoft.org/temp/P1000159.RW2.zip
Thorsten
<?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='/Users/thorstenlemke/Desktop/RW2/P1000159.RW2'
xmlns:et='http://ns.exiftool.org/1.0/' et:toolkit='Image::ExifTool 12.41'
xmlns:IFD0='http://ns.exiftool.org/EXIF/IFD0/1.0/'
xmlns:ExifIFD='http://ns.exiftool.org/EXIF/ExifIFD/1.0/'
xmlns:InteropIFD='http://ns.exiftool.org/EXIF/InteropIFD/1.0/'
xmlns:IFD1='http://ns.exiftool.org/EXIF/IFD1/1.0/'>
<IFD0:PanasonicRawVersion et:id='1'>0400</IFD0:PanasonicRawVersion>
<IFD0:SensorWidth et:id='2'>6072</IFD0:SensorWidth>
<IFD0:SensorHeight et:id='3'>4016</IFD0:SensorHeight>
<IFD0:SensorTopBorder et:id='4'>8</IFD0:SensorTopBorder>
<IFD0:SensorLeftBorder et:id='5'>12</IFD0:SensorLeftBorder>
<IFD0:SensorBottomBorder et:id='6'>4008</IFD0:SensorBottomBorder>
<IFD0:SensorRightBorder et:id='7'>6012</IFD0:SensorRightBorder>
<IFD0:SamplesPerPixel et:id='8'>1</IFD0:SamplesPerPixel>
<IFD0:CFAPattern et:id='9'>1</IFD0:CFAPattern>
<IFD0:BitsPerSample et:id='10'>14</IFD0:BitsPerSample>
<IFD0:Compression et:id='11'>34316</IFD0:Compression>
<IFD0:LinearityLimitRed et:id='14'>16383</IFD0:LinearityLimitRed>
<IFD0:LinearityLimitGreen et:id='15'>16383</IFD0:LinearityLimitGreen>
<IFD0:LinearityLimitBlue et:id='16'>16383</IFD0:LinearityLimitBlue>
<IFD0:ISO et:id='23'>400</IFD0:ISO>
<IFD0:HighISOMultiplierRed et:id='24'>1</IFD0:HighISOMultiplierRed>
<IFD0:HighISOMultiplierGreen et:id='25'>1</IFD0:HighISOMultiplierGreen>
<IFD0:HighISOMultiplierBlue et:id='26'>1</IFD0:HighISOMultiplierBlue>
<IFD0:NoiseReductionParams et:id='27'>5 100 4 4 4 200 8 8 8 400 16 16 16 800 32 32 32 1600 64 64 64</IFD0:NoiseReductionParams>
<IFD0:BlackLevelRed et:id='28'>510</IFD0:BlackLevelRed>
<IFD0:BlackLevelGreen et:id='29'>510</IFD0:BlackLevelGreen>
<IFD0:BlackLevelBlue et:id='30'>510</IFD0:BlackLevelBlue>
<IFD0:WBRedLevel et:id='36'>578</IFD0:WBRedLevel>
<IFD0:WBGreenLevel et:id='37'>256</IFD0:WBGreenLevel>
<IFD0:WBBlueLevel et:id='38'>433</IFD0:WBBlueLevel>
<IFD0:RawFormat et:id='45'>6</IFD0:RawFormat>
<IFD0:Make et:id='271'>Panasonic</IFD0:Make>
<IFD0:Model et:id='272'>DC-S5</IFD0:Model>
<IFD0:Orientation et:id='274'>1</IFD0:Orientation>
<IFD0:XResolution et:id='282'>180</IFD0:XResolution>
<IFD0:YResolution et:id='283'>180</IFD0:YResolution>
<IFD0:ResolutionUnit et:id='296'>2</IFD0:ResolutionUnit>
<IFD0:Software et:id='305'>Ver.2.3</IFD0:Software>
<IFD0:ModifyDate et:id='306'>2022:06:25 18:13:55</IFD0:ModifyDate>
<IFD0:Artist et:id='315'>Travis Butler</IFD0:Artist>
<IFD0:YCbCrPositioning et:id='531'>2</IFD0:YCbCrPositioning>
<IFD0:Copyright et:id='33432'></IFD0:Copyright>
<ExifIFD:ExposureTime et:id='33434'>0.008</ExifIFD:ExposureTime>
<ExifIFD:FNumber et:id='33437'>0</ExifIFD:FNumber>
<ExifIFD:ExposureProgram et:id='34850'>2</ExifIFD:ExposureProgram>
<ExifIFD:ISO et:id='34855'>400</ExifIFD:ISO>
<ExifIFD:SensitivityType et:id='34864'>1</ExifIFD:SensitivityType>
<ExifIFD:StandardOutputSensitivity et:id='34865'>400</ExifIFD:StandardOutputSensitivity>
<ExifIFD:ExifVersion et:id='36864'>0231</ExifIFD:ExifVersion>
<ExifIFD:DateTimeOriginal et:id='36867'>2022:06:25 18:13:55</ExifIFD:DateTimeOriginal>
<ExifIFD:CreateDate et:id='36868'>2022:06:25 18:13:55</ExifIFD:CreateDate>
<ExifIFD:OffsetTime et:id='36880'>-06:00</ExifIFD:OffsetTime>
<ExifIFD:OffsetTimeOriginal et:id='36881'>-06:00</ExifIFD:OffsetTimeOriginal>
<ExifIFD:OffsetTimeDigitized et:id='36882'>-06:00</ExifIFD:OffsetTimeDigitized>
<ExifIFD:ComponentsConfiguration et:id='37121'>1 2 3 0</ExifIFD:ComponentsConfiguration>
<ExifIFD:CompressedBitsPerPixel et:id='37122'>2</ExifIFD:CompressedBitsPerPixel>
<ExifIFD:ExposureCompensation et:id='37380'>-0.66</ExifIFD:ExposureCompensation>
<ExifIFD:MaxApertureValue et:id='37381'>1</ExifIFD:MaxApertureValue>
<ExifIFD:MeteringMode et:id='37383'>5</ExifIFD:MeteringMode>
<ExifIFD:LightSource et:id='37384'>0</ExifIFD:LightSource>
<ExifIFD:Flash et:id='37385'>16</ExifIFD:Flash>
<ExifIFD:FocalLength et:id='37386'>0</ExifIFD:FocalLength>
<ExifIFD:SubSecTime et:id='37520'>159</ExifIFD:SubSecTime>
<ExifIFD:SubSecTimeOriginal et:id='37521'>159</ExifIFD:SubSecTimeOriginal>
<ExifIFD:SubSecTimeDigitized et:id='37522'>159</ExifIFD:SubSecTimeDigitized>
<ExifIFD:FlashpixVersion et:id='40960'>0100</ExifIFD:FlashpixVersion>
<ExifIFD:ColorSpace et:id='40961'>1</ExifIFD:ColorSpace>
<ExifIFD:ExifImageWidth et:id='40962'>1920</ExifIFD:ExifImageWidth>
<ExifIFD:ExifImageHeight et:id='40963'>1280</ExifIFD:ExifImageHeight>
<InteropIFD:InteropIndex et:id='1'>R98</InteropIFD:InteropIndex>
<InteropIFD:InteropVersion et:id='2'>0100</InteropIFD:InteropVersion>
<ExifIFD:SensingMethod et:id='41495'>2</ExifIFD:SensingMethod>
<ExifIFD:FileSource et:id='41728'>3</ExifIFD:FileSource>
<ExifIFD:SceneType et:id='41729'>1</ExifIFD:SceneType>
<ExifIFD:CustomRendered et:id='41985'>0</ExifIFD:CustomRendered>
<ExifIFD:ExposureMode et:id='41986'>0</ExifIFD:ExposureMode>
<ExifIFD:WhiteBalance et:id='41987'>0</ExifIFD:WhiteBalance>
<ExifIFD:DigitalZoomRatio et:id='41988'>0</ExifIFD:DigitalZoomRatio>
<ExifIFD:FocalLengthIn35mmFormat et:id='41989'>0</ExifIFD:FocalLengthIn35mmFormat>
<ExifIFD:SceneCaptureType et:id='41990'>0</ExifIFD:SceneCaptureType>
<ExifIFD:GainControl et:id='41991'>2</ExifIFD:GainControl>
<ExifIFD:Contrast et:id='41992'>0</ExifIFD:Contrast>
<ExifIFD:Saturation et:id='41993'>0</ExifIFD:Saturation>
<ExifIFD:Sharpness et:id='41994'>0</ExifIFD:Sharpness>
<ExifIFD:SerialNumber et:id='42033'>WJ2BB002087</ExifIFD:SerialNumber>
<ExifIFD:LensModel et:id='42036'>Hexanon 65-135/4</ExifIFD:LensModel>
<IFD1:Compression et:id='259'>6</IFD1:Compression>
<IFD1:Orientation et:id='274'>1</IFD1:Orientation>
<IFD1:XResolution et:id='282'>180</IFD1:XResolution>
<IFD1:YResolution et:id='283'>180</IFD1:YResolution>
<IFD1:ResolutionUnit et:id='296'>2</IFD1:ResolutionUnit>
<IFD1:ThumbnailOffset et:id='513'>31244</IFD1:ThumbnailOffset>
<IFD1:ThumbnailLength et:id='514'>7766</IFD1:ThumbnailLength>
<IFD1:YCbCrPositioning et:id='531'>2</IFD1:YCbCrPositioning>
<IFD0:JpgFromRaw et:id='46'>(Binary data 619781 bytes, use -b option to extract)</IFD0:JpgFromRaw>
<IFD0:CropTop et:id='47'>8</IFD0:CropTop>
<IFD0:CropLeft et:id='48'>12</IFD0:CropLeft>
<IFD0:CropBottom et:id='49'>4008</IFD0:CropBottom>
<IFD0:CropRight et:id='50'>6012</IFD0:CropRight>
<IFD0:Make et:id='271'>Panasonic</IFD0:Make>
<IFD0:Model et:id='272'>DC-S5</IFD0:Model>
<IFD0:StripOffsets et:id='273'>4294967295</IFD0:StripOffsets>
<IFD0:Orientation et:id='274'>1</IFD0:Orientation>
<IFD0:RowsPerStrip et:id='278'>4016</IFD0:RowsPerStrip>
<IFD0:StripByteCounts et:id='279'>35469312</IFD0:StripByteCounts>
<IFD0:RawDataOffset et:id='280'>624182</IFD0:RawDataOffset>
<IFD0:Gamma et:id='284'>2.26953125</IFD0:Gamma>
<IFD0:Multishot et:id='289'>0</IFD0:Multishot>
<ExifIFD:ExposureTime et:id='33434'>0.008</ExifIFD:ExposureTime>
<ExifIFD:FNumber et:id='33437'>0</ExifIFD:FNumber>
<ExifIFD:ExposureProgram et:id='34850'>2</ExifIFD:ExposureProgram>
<ExifIFD:ExifVersion et:id='36864'>0231</ExifIFD:ExifVersion>
<ExifIFD:DateTimeOriginal et:id='36867'>2022:06:25 18:13:55</ExifIFD:DateTimeOriginal>
<ExifIFD:CreateDate et:id='36868'>2022:06:25 18:13:55</ExifIFD:CreateDate>
<ExifIFD:OffsetTimeOriginal et:id='36881'>-06:00</ExifIFD:OffsetTimeOriginal>
<ExifIFD:OffsetTimeDigitized et:id='36882'>-06:00</ExifIFD:OffsetTimeDigitized>
<ExifIFD:ExposureCompensation et:id='37380'>-0.66</ExifIFD:ExposureCompensation>
<ExifIFD:MaxApertureValue et:id='37381'>1</ExifIFD:MaxApertureValue>
<ExifIFD:MeteringMode et:id='37383'>5</ExifIFD:MeteringMode>
<ExifIFD:Flash et:id='37385'>16</ExifIFD:Flash>
<ExifIFD:FocalLength et:id='37386'>0</ExifIFD:FocalLength>
<ExifIFD:SubSecTimeOriginal et:id='37521'>159</ExifIFD:SubSecTimeOriginal>
<ExifIFD:SubSecTimeDigitized et:id='37522'>159</ExifIFD:SubSecTimeDigitized>
<ExifIFD:FileSource et:id='41728'>3</ExifIFD:FileSource>
<ExifIFD:SerialNumber et:id='42033'>WJ2BB002087</ExifIFD:SerialNumber>
<ExifIFD:LensModel et:id='42036'>Hexanon 65-135/4</ExifIFD:LensModel>
</rdf:Description>
</rdf:RDF>
StarGeek Edit: Edited to correct formatting. Please use the (https://exiftool.org/forum/Themes/default/images/bbc/tele.gif) button for commands and (https://exiftool.org/forum/Themes/default/images/bbc/code.gif) button for sample exiftool output.
That is because there is two copies of those tags in the file. From the docs on the -X (-xmlFormat) (https://exiftool.org/exiftool_pod.html#X--xmlFormat)
Implies the -a option, so duplicate tags are extracted.
If you list the data normally with the -a (-duplicates) option (https://exiftool.org/exiftool_pod.html#a---a--duplicates---duplicates), you'll see both tags listed.