Skip to main content
Participant
December 7, 2023
Question

Can I remove things (freckles) from human portrait images using the Photoshop API

  • December 7, 2023
  • 2 replies
  • 633 views

If I have an image and I want to remove specific things like freckles removed from them, is this possible via photoshop API?

This topic has been closed for replies.

2 replies

jane-e
Community Expert
Community Expert
December 15, 2023

@Fayaz34111752ykje 

 

If that doesn't work, you can use the Spot Healing brush on a new layer and click once on each freckle. Change the options for the brush to use all layers.

 

EDIT: This is a non-API method.

 

Jane

Community Manager
December 15, 2023

As I mentioned above, the API does not allow for additional user input so you would not be able to brush over an individual freckle programmtically. You might be able to create an action that can remove some freckles but you wouldnt be able to tell the API with a brush stroke which freckle you would want to remove. Remember this is a headless version of Photoshop running in the cloud and there is no user interface where you can select a brush. Another option you might try is wiring up some image recognition model that would detect freckles and then make a call to remove detected freckles. Currently, we do not have that capability natively within our API but I am sure there is something out there you might be able to use to get a POC together and verify this would work for you. 

Community Manager
December 11, 2023

I am imagining a workflow where you would have to brush over the freckles to let Photoshop know you what you want to remove, and in this case there is no way for you to communicate that through the api. However, it might possible for you create an Action that you can use the API to replay on an image. Here is a link to our documentation https://developer.adobe.com/photoshop/photoshop-api-docs/features/#actionjson