How to convert a mask to base64, use Imaging getLayerMask API

How to turn the mask into a white picture with black background.
Then convert the image to base64
Using getLayerMask and encodeImageData API caused PS to crash


1 Like