Copy link to clipboard
Copied
Is this possible to get the pixel data of a layer? I need to stream the bitmap to my application.
Copy link to clipboard
Copied
Save your layer as .jpg file to disk and try this method: Performance Issues - Read Color Informations
Copy link to clipboard
Copied
I'm trying to stream to my service, (keep in memory) is there anyway I can get around not having to save to disk? If I have to go that route anyways~ I can just import the .jpg directly I would like to not have to do that if I can.
Thanks for the reply!
Copy link to clipboard
Copied
Performance Issues - Read Color Informations updated. See how connect Br from Ps and store Bitmap Data in variable.
Copy link to clipboard
Copied
I'm sorry one last question, I'm not fluent in JS so bear with me, it still seems you're creating and saving out a bitmap then reading it?
Or is that getting the current canvas pixels with 'function reading(v)'?
Copy link to clipboard
Copied
Actually in second script (that connecting with Bridge) I don't save a file to disk, however it must be saved before you read its Bitmap Data. There is no way to do it quite fast by Photoshop without reading saved file. If you did that with samplers on live image that took ages selecting each single px to check its value. So I do not save file, however had if it wasn't saved yet.