Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How get layer pixels data to script / upload image to database using extension

Community Beginner ,
Apr 22, 2015 Apr 22, 2015

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!

TOPICS
Actions and scripting
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Advocate ,
Apr 23, 2015 Apr 23, 2015

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 27, 2015 Apr 27, 2015
LATEST

Thanks! I will look to that.

I might just save temp file and upload it over JavaScript Socket().

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines