[Oiio-dev] oiio::UnassociatedAlpha question

2017-08-10 Thread Akihiro Yamasaki
Hi there, I'm running into the alpha channel issue. I want to read an image as unassociated alpha. So I used following code: ImageSpec config; config.attribute("oiio:UnassociatedAlpha", 1); ImageInput *image_in = ImageInput::open(filename, ); image_in->read_image(...); But I noticed that some

Re: [Oiio-dev] oiio::UnassociatedAlpha question

2017-08-10 Thread Larry Gritz
What the attribute means is: If the image file has unassociated alpha, KEEP it unassociated (preserving the original data values from the file), rather than the usual practice of converting to associated alpha, as is the normal OIIO convention. It does not convert an associated alpha file

Re: [Oiio-dev] oiio::UnassociatedAlpha question

2017-08-10 Thread Akihiro Yamasaki
Thank you for the answer. I understand the attribute means and OIIO design. For PSD, I think there is a bug the last layer's ImageSpec only has oiio::UnassociatedAlpha attribute. All layer's ImageSpec should have the attribute. For SGI, we need to process as unassociated alpha because of the