Skip to main content
purplecrab
Participant
March 2, 2026
Question

Issue with canvas resize in Adobe Cloud API

  • March 2, 2026
  • 0 replies
  • 30 views

Hello,

 

I am a developer who implemented some functionalities using Adobe Cloud API for PSD file manipulation. I need to resize my canvas and come across this documentation for it: https://developer.adobe.com/firefly-services/docs/photoshop/api/#operation/modifyDocumentAsync!path=options/document/canvasSize&t=request

 

I understand that I need to provide a payload for https://image.adobe.io/pie/psdService/documentOperations where I specify:

{

    "inputs": [

        {

            "href": <input_url>,

            "storage": "external"

        }

    ],

    "options": {

        "layers": <layers_operations>,

        "document": {

            "canvasSize": {

                "bounds": {

                    "top": 0,

                    "left": 0,

                    "width": <target_width>,

                    "height": <target_height>,

                }

            }

        }

    },

    "outputs": [

        {

            "href": <output_url>,

            "storage": "external",

            "type": "vnd.adobe.photoshop"

        }

    ]

}

 

I tried that, but it seems that width and height parameters are ignored. I noticed that it applies some cropping and it expects top, left, bottom, right in bounds dictionary, not width and height, but in this case I can only resize the canvas if the target size is smaller than the original size, which is not what I need. 

 

Did anyone faced this issue? If yes, please post the solution.