I getPixels() from a grayscale image, modify them then put them back. So far I have been passing the colorProfile I got from the original imageData back to createImageDataFromBuffer
I just tried this on an image with a “Grayscale D50” profile and I get an error “Photoshop Error. Code: -26120. Message: Unknown color profile”
Looking at the color profiles that app.getColorProfiles(“Gray”) returns, Grayscale D50 is not one of them. I know it is optional to pass a profile to createImageDataFromBuffer. If I don’t does it assume my data needs no conversion or is it assuming a default profile and converting it?