Highlighted

ActionScript 3 edit Bitmap with Photoshop. Possible?

Community Beginner ,
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!

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..

TOPICS
Development

Views

222

Likes

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

ActionScript 3 edit Bitmap with Photoshop. Possible?

Community Beginner ,
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!

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..

TOPICS
Development

Views

223

Likes

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
Feb 08, 2017 0
Advocate ,
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..

Likes

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
Reply
Loading...
Feb 09, 2017 2
Community Beginner ,
Feb 09, 2017

Copy link to clipboard

Copied

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!

Likes

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
Reply
Loading...
Feb 09, 2017 1
Adobe Community Professional ,
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

Likes

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
Reply
Loading...
Feb 09, 2017 2