Need Help With Adding Tags not in the PrintConv

Started by Archive, May 12, 2010, 08:53:59 AM

Previous topic - Next topic

Archive

[Originally posted by qlx on 2007-01-03 17:47:17-08]



Problem:  Changing the ColorSpace in an EXIF IFD table.

Error:  

Code:
C:\ExifTool>exiftool -ColorSpace='sRGB' tifftest1.tif
Can't convert ExifIFD:ColorSpace (not in PrintConv)
    0 image files updated
    1 image files unchanged

Creative Solution #1:

1.  Extract the binary data from an existing EXIF Table with the ColorSpace already set to sRGB.

Code:
C:\ExifTool>exiftool -exif -b tifftest3.tif > sRGBEXIF.dat

2.  Insert the binary data from this .dat file into the new file.

Code:
C:\ExifTool>exiftool -ColorSpace< =sRGBEXIF.dat tifftest1.tif
Color Space                     : Uncalibrated

As you can see, this is not working as I hoped it would.  I am using the documentation that reads:

-*TAG*< =*DATFILE* or -*TAG*< =*FMT*

   Set the value of a tag from the contents of a file *DATEFILE*.  The file name may also be given by a *FMT* string where....

Can anybody clue me in on what is the best strategy to obtain my objective of force changing an Uncalibrated ColorSpace to a sRGB ColorSpace?

-QLx

Archive

[Originally posted by exiftool on 2007-01-03 18:01:01-08]

Ah ha.  The problem is your shell.  In the Windows cmd.exe
shell, you must double quote the entire argument:

Code:
C:\ExifTool> exiftool "-ColorSpace=sRGB" tifftest1.tif

(or in this case, you could do it without the quotes entirely).

- Phil