Hello, I am trying to load the layer mask from a layer in a psd file. The
layer is fully red, with a white mask scribbled in places. Example here:
https://www.dropbox.com/s/9vr53lgz51kj53y/layer_mask_issue.psd?dl=0
Oiiotool on linux can extract the correct subimage for the layer "FG" (2)
into a target exr, but it comes through with the RGB as a fully red layer
(this is correctly how my layer is setup) but the alpha of the layer is
full white. I fiddled with premultiplying and unpremultiplying options, but
those both have totally white alpha channels.  I see layer mask handling in
the psd plugin source, but I don't (yet) see a place where the actual mask
pixel buffer data is pulled from the file and copied into the layer alpha
in the oiio subimage.
And to clarify, on photoshop side this is a mask for a layer, not an alpha
channel (in the channels view it shows up as "FG mask").

Anyone slogged down this road? Can you save me hours of playing with
https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/ ?  This is a
file format I have no desire to become expert in. =)

(oiio version 1.9xish on ubuntu linux)

-- 
*Asa Hammond*

*Founder.CTO - PRENAV <http://www.prenav.com/>*
310-503-1358www.prenav.com
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to