c++ lib, photoshop layers with opacity are inverted
Posted: 2009-05-05T13:46:48-07:00
Hello,
Using a std::vector<Image> and readImages(), I'm reading in a .psd file.
If I then iterate through that file and write each layer out to a separate file, I'm finding that some of my images have the alpha channel inverted.
Looking at it, it's any layer that has an opacity set to something less than 100% that has this issue.
So I thought in code I'd just flip the opacity again, but I'm finding that images.attribute("layer-opacity") always returns an empty string. images.attribute("label") correctly returns the layer name though...
Any ideas on what I can do?
Thanks
Using a std::vector<Image> and readImages(), I'm reading in a .psd file.
If I then iterate through that file and write each layer out to a separate file, I'm finding that some of my images have the alpha channel inverted.
Looking at it, it's any layer that has an opacity set to something less than 100% that has this issue.
So I thought in code I'd just flip the opacity again, but I'm finding that images.attribute("layer-opacity") always returns an empty string. images.attribute("label") correctly returns the layer name though...
Any ideas on what I can do?
Thanks