ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: nestochi on March 02, 2012, 06:57:49 PM

Title: Printable and non-printable values at the same time
Post by: nestochi on March 02, 2012, 06:57:49 PM
Hi

is there any way to show in the output of exiftool the printable and non-printable (-n) at the same time?
if been playing around but it seems they're incompatible.

if not possible, i'll try to modify the perl file, to check if i am able to set the output in my own format.
before diving into the code, i'd appreciate if someone could point me where in exiftool.pl should look into to achieve this.

best regards
Title: Re: Printable and non-printable values at the same time
Post by: Phil Harvey on March 03, 2012, 07:07:01 AM
Currently the only way to do this is with the -X -l output format.  For example:

> exiftool -X -l -File:YCbCrSubSampling a.jpg
<?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 8.81'
  xmlns:File='http://ns.exiftool.ca/File/1.0/'>
<File:YCbCrSubSampling rdf:parseType='Resource'>
   <et:desc>Y Cb Cr Sub Sampling</et:desc>
   <et:prt>YCbCr4:2:0 (2 2)</et:prt>
   <et:val>2 2</et:val>
</File:YCbCrSubSampling>
</rdf:Description>
</rdf:RDF>


"prt" gives the human-readable version, and "val" gives the numerical equivalent.  In the case where they are the same, "val" is omitted from the output.

- Phil