Sony.pmp tag names for Make and Model

Started by Curtis, April 21, 2016, 03:17:22 AM

Previous topic - Next topic

Curtis

Hi Phil,

I have noticed that the tag names returned for Make and Model returned from your test file Sony.pmp are in the ExifTool g1 group and have a blank table name and id, as shown below,  is this correct?  Seems like they should be in the Sony group or at least the table and id should not be blank, correct?

Thanks!
Curtis

<?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='D:/Users_Norm/Documents/Visual Studio 2015/Projects/Active/ActiveSolutions/Test Problem Files B/Sony.pmp'
  xmlns:et='http://ns.exiftool.ca/1.0/' et:toolkit='Image::ExifTool 10.10'
  xmlns:ExifTool='http://ns.exiftool.ca/ExifTool/1.0/'
  xmlns:System='http://ns.exiftool.ca/File/System/1.0/'
  xmlns:File='http://ns.exiftool.ca/File/1.0/'
  xmlns:Sony='http://ns.exiftool.ca/MakerNotes/Sony/1.0/'
  xmlns:Composite='http://ns.exiftool.ca/Composite/1.0/'>
<ExifTool:ExifToolVersion>
  <rdf:Description et:id='ExifToolVersion' et:table='Extra'>
   <et:desc>ExifTool Version Number</et:desc>
   <et:prt>10.10</et:prt>
  </rdf:Description>
</ExifTool:ExifToolVersion>
<ExifTool:Make>
  <rdf:Description et:id='' et:table=''>
   <et:desc>Make</et:desc>
   <et:prt>Sony</et:prt>
  </rdf:Description>
</ExifTool:Make>
<ExifTool:Model>
  <rdf:Description et:id='' et:table=''>
   <et:desc>Model</et:desc>
   <et:prt>DSC-F1</et:prt>
  </rdf:Description>
</ExifTool:Model>
<System:FileName>
  <rdf:Description et:id='FileName' et:table='Extra'>
   <et:desc>File Name</et:desc>
   <et:prt>Sony.pmp</et:prt>
  </rdf:Description>
</System:FileName>
<System:Directory>
  <rdf:Description et:id='Directory' et:table='Extra'>
   <et:desc>Directory</et:desc>
   <et:prt>D:/Users_Norm/Documents/Visual Studio 2015/Projects/Active/ActiveSolutions/Test Problem Files B</et:prt>
  </rdf:Description>
</System:Directory>
<System:FileSize>
  <rdf:Description et:id='FileSize' et:table='Extra'>
   <et:desc>File Size</et:desc>
   <et:prt>375 bytes</et:prt>
   <et:val>375</et:val>
  </rdf:Description>
</System:FileSize>
<System:FileModifyDate>
  <rdf:Description et:id='FileModifyDate' et:table='Extra'>
   <et:desc>File Modification Date/Time</et:desc>
   <et:prt>2010:04:13 15:42:12-07:00</et:prt>
  </rdf:Description>
</System:FileModifyDate>
<System:FileAccessDate>
  <rdf:Description et:id='FileAccessDate' et:table='Extra'>
   <et:desc>File Access Date/Time</et:desc>
   <et:prt>2016:04:20 17:43:30-07:00</et:prt>
  </rdf:Description>
</System:FileAccessDate>
<System:FileCreateDate>
  <rdf:Description et:id='FileCreateDate' et:table='Extra'>
   <et:desc>File Creation Date/Time</et:desc>
   <et:prt>2016:04:20 17:43:30-07:00</et:prt>
  </rdf:Description>
</System:FileCreateDate>
<System:FilePermissions>
  <rdf:Description et:id='FilePermissions' et:table='Extra'>
   <et:desc>File Permissions</et:desc>
   <et:prt>rw-rw-rw-</et:prt>
   <et:val>666</et:val>
  </rdf:Description>
</System:FilePermissions>
<File:FileType>
  <rdf:Description et:id='FileType' et:table='Extra'>
   <et:desc>File Type</et:desc>
   <et:prt>PMP</et:prt>
  </rdf:Description>
</File:FileType>
<File:FileTypeExtension>
  <rdf:Description et:id='FileTypeExtension' et:table='Extra'>
   <et:desc>File Type Extension</et:desc>
   <et:prt>pmp</et:prt>
   <et:val>PMP</et:val>
  </rdf:Description>
</File:FileTypeExtension>
<File:MIMEType>
  <rdf:Description et:id='MIMEType' et:table='Extra'>
   <et:desc>MIME Type</et:desc>
   <et:prt>application/unknown</et:prt>
  </rdf:Description>
</File:MIMEType>
<File:ImageWidth>
  <rdf:Description et:id='ImageWidth' et:table='JPEG::SOF'>
   <et:desc>Image Width</et:desc>
   <et:prt>8</et:prt>
  </rdf:Description>
</File:ImageWidth>
<File:ImageHeight>
  <rdf:Description et:id='ImageHeight' et:table='JPEG::SOF'>
   <et:desc>Image Height</et:desc>
   <et:prt>8</et:prt>
  </rdf:Description>
</File:ImageHeight>
<File:EncodingProcess>
  <rdf:Description et:id='EncodingProcess' et:table='JPEG::SOF'>
   <et:desc>Encoding Process</et:desc>
   <et:prt>Baseline DCT, Huffman coding</et:prt>
   <et:val>0</et:val>
  </rdf:Description>
</File:EncodingProcess>
<File:BitsPerSample>
  <rdf:Description et:id='BitsPerSample' et:table='JPEG::SOF'>
   <et:desc>Bits Per Sample</et:desc>
   <et:prt>8</et:prt>
  </rdf:Description>
</File:BitsPerSample>
<File:ColorComponents>
  <rdf:Description et:id='ColorComponents' et:table='JPEG::SOF'>
   <et:desc>Color Components</et:desc>
   <et:prt>3</et:prt>
  </rdf:Description>
</File:ColorComponents>
<File:YCbCrSubSampling>
  <rdf:Description et:id='YCbCrSubSampling' et:table='JPEG::SOF'>
   <et:desc>Y Cb Cr Sub Sampling</et:desc>
   <et:prt>YCbCr4:2:0 (2 2)</et:prt>
   <et:val>2 2</et:val>
  </rdf:Description>
</File:YCbCrSubSampling>
<Sony:JpgFromRawStart>
  <rdf:Description et:id='8' et:table='Sony::PMP'>
   <et:desc>Jpg From Raw Start</et:desc>
   <et:prt>124</et:prt>
  </rdf:Description>
</Sony:JpgFromRawStart>
<Sony:JpgFromRawLength>
  <rdf:Description et:id='12' et:table='Sony::PMP'>
   <et:desc>Jpg From Raw Length</et:desc>
   <et:prt>251</et:prt>
  </rdf:Description>
</Sony:JpgFromRawLength>
<Sony:SonyImageWidth>
  <rdf:Description et:id='22' et:table='Sony::PMP'>
   <et:desc>Sony Image Width</et:desc>
   <et:prt>640</et:prt>
  </rdf:Description>
</Sony:SonyImageWidth>
<Sony:SonyImageHeight>
  <rdf:Description et:id='24' et:table='Sony::PMP'>
   <et:desc>Sony Image Height</et:desc>
   <et:prt>480</et:prt>
  </rdf:Description>
</Sony:SonyImageHeight>
<Sony:Orientation>
  <rdf:Description et:id='27' et:table='Sony::PMP'>
   <et:desc>Orientation</et:desc>
   <et:prt>Horizontal (normal)</et:prt>
   <et:val>0</et:val>
  </rdf:Description>
</Sony:Orientation>
<Sony:ImageQuality>
  <rdf:Description et:id='29' et:table='Sony::PMP'>
   <et:desc>Image Quality</et:desc>
   <et:prt>Standard</et:prt>
   <et:val>23</et:val>
  </rdf:Description>
</Sony:ImageQuality>
<Sony:Comment>
  <rdf:Description et:id='52' et:table='Sony::PMP'>
   <et:desc>Comment</et:desc>
   <et:prt></et:prt>
  </rdf:Description>
</Sony:Comment>
<Sony:DateTimeOriginal>
  <rdf:Description et:id='76' et:table='Sony::PMP'>
   <et:desc>Date/Time Original</et:desc>
   <et:prt>1998:09:01 20:19:57</et:prt>
  </rdf:Description>
</Sony:DateTimeOriginal>
<Sony:ModifyDate>
  <rdf:Description et:id='84' et:table='Sony::PMP'>
   <et:desc>Modify Date</et:desc>
   <et:prt>1998:09:01 20:19:57</et:prt>
  </rdf:Description>
</Sony:ModifyDate>
<Sony:ExposureTime>
  <rdf:Description et:id='102' et:table='Sony::PMP'>
   <et:desc>Exposure Time</et:desc>
   <et:prt>1/100</et:prt>
   <et:val>0.0100267648247102</et:val>
  </rdf:Description>
</Sony:ExposureTime>
<Sony:Flash>
  <rdf:Description et:id='118' et:table='Sony::PMP'>
   <et:desc>Flash</et:desc>
   <et:prt>No Flash</et:prt>
   <et:val>0</et:val>
  </rdf:Description>
</Sony:Flash>
<Composite:ImageSize>
  <rdf:Description et:id='ImageSize' et:table='Composite'>
   <et:desc>Image Size</et:desc>
   <et:prt>8x8</et:prt>
  </rdf:Description>
</Composite:ImageSize>
<Composite:JpgFromRaw>
  <rdf:Description et:id='JpgFromRaw' et:table='Composite'>
   <et:desc>Jpg From Raw</et:desc>
   <et:prt>(Binary data 251 bytes, use -b option to extract)</et:prt>
  </rdf:Description>
</Composite:JpgFromRaw>
<Composite:Megapixels>
  <rdf:Description et:id='Megapixels' et:table='Composite'>
   <et:desc>Megapixels</et:desc>
   <et:prt>0.000064</et:prt>
   <et:val>6.4e-005</et:val>
  </rdf:Description>
</Composite:Megapixels>
<Composite:ShutterSpeed>
  <rdf:Description et:id='ShutterSpeed' et:table='Composite'>
   <et:desc>Shutter Speed</et:desc>
   <et:prt>1/100</et:prt>
   <et:val>0.0100267648247102</et:val>
  </rdf:Description>
</Composite:ShutterSpeed>
</rdf:Description>
</rdf:RDF>


Phil Harvey

Hi Curtis,

This is a result of generating tags out of thin air.  These tags actually don't exist in the file (the Sony DSC-F1 is the only camera that writes PMP files, which is how ExifTool knows the Make/Model).  I could maybe make entries in the Extra table for them... I'd have to think about this.

- 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 ($).

Curtis

Thanks Phil,  I thought it may be something like this since when I looked a the binary file Sony.pmp I could not find any "Sony" or "DSC-F1" text. 

Since these tags obviously can not be written back to the file and they do not come back in the -listx output after reading the Sony.pmp   file and they are a known 'special case', then in my program I will also just handle it as a special case. 

I did notice that of all the 'new' tags created with all of your 148 or so test files these are the only ones put in the Exiftool g1 group or that have a blank table and id.

Let me know if you decide to put them some where else (Sony g1?) in a future exiftool version.

Thanks again!
Curtis