Skip to main content
rasmuslian
Participant
Oct 3, 2023 6:36 PM UTC
Question

PS API - Fit image to specific size

Hi,

I created an Action JSON file which I use with the Photoshop API and send to this endpoint.

https://image.adobe.io/pie/psdService/actionJSON

However this object does not do anything (doesn't work):

{
   _obj: "javaScriptOptionsClass",
   height: { _unit: "pixelsUnit", _value: 1440.0 },
   limit: false,
   message: "Fit Image action settings",
   width: { _unit: "pixelsUnit", _value: 1080.0 },
},

How can I fit an image with the action JSON to certain dimensions?

 

Everything normal works, I have tested different other actions which work but not this one.

 

Thanks in advance!

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Community Manager
Oct 5, 2023 4:57 PM UTC

Hi,

Thanks for creating a support ticket for this issue. Our team is looking into it and will respond to your ticket with a solution and will post it here as well for anyone following this thread. 

Translate
Participating Frequently
Oct 4, 2023 1:56 PM UTC

Consider using the 'documentOperations' endpoint.  It provides the capability to resize both the image and canvas.

Translate