Adding/Writing CRS TAGs for Adobe Bridge/Photoshop Camera Raw.

Started by Philippe-Pierre, January 02, 2019, 12:22:58 AM

Previous topic - Next topic

Philippe-Pierre

Hello,
first, thank you for this very powerful EXIFtool!

Sorry, i am very new to EXIFtool but trying to add CRS related TAGs to a JPG file which does not have any at first.
Those TAGs values need to be read later through Adobe Bridge/Photoshop.
(that will be done via Applescript /shell script as follow :

do shell script (EXIFtool_path & " -XMP-crs:Highlights2012=-50 -XMP-crs:Shadows2012=30 -overwrite_original " & dst.JPG)

but my help request does not concern that part. Or does it? :-\)

It "works", in a way, because TAGs are added to the dst.JPG file without problem but in a "format" that Adobe Bridge or Photoshop can't read them :
Here are the XMP raw Data excepts when done with :
- EXIFtool through command line
[...]
<tiff:ResolutionUnit>2</tiff:ResolutionUnit>
         <xmp:CreateDate>2017-09-27T11:39:42.23</xmp:CreateDate>
         <xmp:CreatorTool>Capture One 10 Macintosh</xmp:CreatorTool>
         <xmp:ModifyDate>2017-09-27T11:39:42.23</xmp:ModifyDate>
         <crs:Highlights2012>-50</crs:Highlights2012>
         <crs:Shadows2012>+30</crs:Shadows2012>

         <crs:AlreadyApplied>True</crs:AlreadyApplied>
         <xmpMM:DocumentID>59D2EE3AEF7AD580F634A11F197C842D</xmpM
[...]

- or Adobe Bridge Camera Raw
<xmp:CreatorTool>Capture One 10 Macintosh</xmp:CreatorTool>
         <xmp:ModifyDate>2017-09-27T11:39:42.23</xmp:ModifyDate>
         <xmp:Rating>0</xmp:Rating>
         <xmp:MetadataDate>2019-01-02T13:48:18+09:00</xmp:MetadataDate>
         <xmpMM:DocumentID>59D2EE3AEF7AD580F634A11F197C842D</xmpMM:DocumentID>
         <xmpMM:OriginalDocumentID>59D2EE3AEF7AD580F634A11F197C842D</xmpMM:OriginalDocumentID>
         <xmpMM:InstanceID>xmp.iid:9cb7ea99-b92f-4ef8-8033-37101bf1cfc8</xmpMM:InstanceID>
         <xmpMM:History>
            <rdf:Seq>
               <rdf:li rdf:parseType="Resource">
                  <stEvt:action>saved</stEvt:action>
                  <stEvt:instanceID>xmp.iid:9cb7ea99-b92f-4ef8-8033-37101bf1cfc8</stEvt:instanceID>
                  <stEvt:when>2019-01-02T13:48:18+09:00</stEvt:when>
                  <stEvt:softwareAgent>Adobe Photoshop Camera Raw 11.1 (Macintosh)</stEvt:softwareAgent>
                  <stEvt:changed>/metadata</stEvt:changed>
               </rdf:li>
            </rdf:Seq>
         </xmpMM:History>
         <dc:format>image/jpeg</dc:format>
         <crs:Version>11.1</crs:Version>
         <crs:ProcessVersion>11.0</crs:ProcessVersion>
[...]         
         <crs:Exposure2012>0.00</crs:Exposure2012>
         <crs:Contrast2012>0</crs:Contrast2012>
         <crs:Highlights2012>-50</crs:Highlights2012>
         <crs:Shadows2012>+30</crs:Shadows2012>

         <crs:Whites2012>0</crs:Whites2012>
         [...]
         <tiff:Make>Canon</tiff:Make>
         <tiff:Model>Canon EOS 5D Mark II</tiff:Model>
[...]

What should I do to get closer to the Adobe XMP raw Data format?
Thank you for your time to read and your suggestions.
Philippe-P.

Phil Harvey

That is a question for Adobe, but my guess is that you may need to write all of the XMP-crs tags for them to be accepted by Adobe software.

You could figure this out yourself by manually editing the Adobe XMP to remove/change it until it stops working.

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

Philippe-Pierre

Thank you Phil for your answer.
Quotemy guess is that you may need to write all of the XMP-crs tags for them to be accepted by Adobe software.
Right, good guess. Sorry I forgot to say this at first : it works when importing XMP-crs tags from a source file that way :
" -TagsFromFile " & srcF " -XMP-crs:Highlights2012 -XMP-crs:Shadows2012 -overwrite_original " & dstF
But it imports much more than what we need and, again, in a different "format" compared to what Bridge does. Which might be a problem later in the "process chain"...

QuoteYou could figure this out yourself by manually editing the Adobe XMP to remove/change it until it stops working.
Therefore thanks for your suggestion to make a wider tag selection to make it work, I will!
Best regards,
Philippe-P.