Skip to main content
rasmuslian
Participant
October 3, 2023
Question

PS API - Fit image to specific size

  • October 3, 2023
  • 2 replies
  • 295 views

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 has been closed for replies.

2 replies

Community Manager
October 5, 2023

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. 

Participating Frequently
October 4, 2023

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