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

ActionScript 3 edit Bitmap with Photoshop. Possible?

Community Beginner ,
Feb 08, 2017 Feb 08, 2017

Copy link to clipboard

Copied

Hi!

I'm developing a piece of software to automate web posting to social networks. It can add images to posts but I need it to be able to send encoded Bitmap to Photoshop for editing. So the question is how is it possible to send image bytes to Photoshop and get edited image bytes back in AS3? I mean the feature like Animate CC has. "Edit with Photoshop" which automatically loads an image up to PS and applies changes made there right away.

Is there any API for Photoshop connection available on the web?

Thanks!

TOPICS
Development

Views

313

Translate

Translate

Report

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

correct answers 1 Correct answer

Advocate , Feb 09, 2017 Feb 09, 2017

Without any first hand experience I would assume that the bitmaps in your example are temporarily stored on the HDD and the Photoshop.exe is called with a parameter that contains the image path. You should also be able to monitor last date modified with a File object to load it back into AS3. So there is no magical API involved..

Votes

Translate

Translate
Advocate ,
Feb 09, 2017 Feb 09, 2017

Copy link to clipboard

Copied

Without any first hand experience I would assume that the bitmaps in your example are temporarily stored on the HDD and the Photoshop.exe is called with a parameter that contains the image path. You should also be able to monitor last date modified with a File object to load it back into AS3. So there is no magical API involved..

Votes

Translate

Translate

Report

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 ,
Feb 09, 2017 Feb 09, 2017

Copy link to clipboard

Copied

LATEST

They are not stored on HDD, they're downloaded from the web directly to my program, but it's no problem to save them temporarily That's a very good solution. Thanks you very much!

Votes

Translate

Translate

Report

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
LEGEND ,
Feb 09, 2017 Feb 09, 2017

Copy link to clipboard

Copied

When you edit a bitmap with Photoshop the image is placed here:

~/Library/Application Support/Adobe/Animate CC 2017/en_US/Configuration/Bitmap 1.png

where 'Bitmap 1' is what the bitmap was called in the Library. I don't know if Animate then uses custom code to open the file for editing, or to know when editing is finished. Or it may use platform specific code.

If you were able to run your app on a Mac, you could look into AppleScript as a way to tell Photoshop to edit the bitmap. See discussions like this one:

flash - How do you call an AppleScript process from AIR? - Stack Overflow

Votes

Translate

Translate

Report

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