Keep/discard alfa depending on opacity
Posted: 2018-04-17T08:32:51-07:00
I want to batch convert multiple PSD to a TIFF files without layers. If I am not mistaken, I can just grab the composite version of the PSD by appending [0] to its filename, but then, regarding the alpha, is there a way to programmatically keep it or discard it depending on whether there actually exists any non-opaque pixel in the image at all or discard it if not? Even better, could that test ignore the outmost n-pixels in the four edges of the image?