How to pass image metadata though "colour.write_image" definition? #35
Unanswered
ahemberger
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Some spelunking through the oiio docs has led me to an answer that I think is working:
Sorry for the answer-my-own-question spam... |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi;
I'm wrestling with carrying some camera RAW images through an HDRI assembly process using ptGUI and Photoshop, whereby I'm trying to keep everything in ACES2065-1 throughout.
Step 1 of my process is bringing my .CR2 files into ptgui, merging and stitching, and outputting a (poorly-exposed, but correct) HDR panorama. ptGUI allows me to specify an output colorspace, and so I choose ACES2065-1. This works pretty swimmingly: if I output a tiff, ACES is included as an ICC profile. If I output an EXR, ACES is denoted by the "chromaticities" metadata tag.
My next step is to use colour and some python to apply a global exposure compensation, to bring the images into a more pleasing/useful viewable range. Here is where things go sideways on me: I seem to lose the ICC profile or the chromaticities tag when outputting my modified image:
Step 3 for me is to pass this image into Photoshop, to clone out tripod shadows and so on. I'm told on the ptGUI forums that the 'chromaticities' attribute is not widely supported, which encourages me to lean towards using TIFFs to navigate this process (though I would much prefer to stick with EXRs). But in either case, Photoshop doesn't seem to understand what the colorspace is of the image being loaded. There is a prompt in which I'm invited to manually specify the colorspace, but I'm a little nervous about how "correct" this is (I'm trying to avoid any sneaky/unwanted conversion of my data). So I think I would feel better about things if I could ensure the exposure-corrected file at least carries forward its ACES metadata through that step.
I'm fuzzy on how I might successfully pass through information about my colorspace through my second step in Python. I'm using openImageIO, and my code looks like:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions