Copy link to clipboard
Copied
Hi,
I am new in PS scripting and I am developing HTML/JavaScript extension.
I am looking for the best way to get all document or just selected layers/groups pixel data (array buffer or etc) that I could get in to my extension, and extension then would upload that data in to my database over simple REST call.
I would prefer JavaScript(or/and JSX) solution over C++
May someone can help me by dropping link to information, or class/function name that I would be able to find in reference pdf? In HTML there is canvas.getImageData(), it may be getDocumentPixmap or layer.getPixMap , etc.
Thank you!
Copy link to clipboard
Copied
Hi,
there's no way, to the best of my knowledge, to retrieve pixel data from straight ExtendScript.
A solution might be to call a Generator script (which can grab pixels), but I'm not particularly into that, alas. Tom Krcha has some tutorials about it you may want to look at.
Hope this helps,
Davide Barranca
---
www.davidebarranca.com
www.cs-extensions.com
Copy link to clipboard
Copied
Thanks! I will look to that.
I might just save temp file and upload it over JavaScript Socket(). ![]()
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more