Smart Filters with Execute Actions

Use POST /v2/execute-actions to apply Photoshop filters nondestructively to a Smart Object. This workflow uses ActionJSON, but you can also use a recorded Photoshop Action (.atn) or UXP containing the same operations.

How the workflow works

  1. Prepare a PSD with the target layer converted to a Smart Object.
  2. Select the Smart Object layer in ActionJSON or in the recorded Photoshop Action.
  3. Apply one or more filters.
  4. Submit the action through /v2/execute-actions.
  5. Request a PSD output to preserve the editable Smart Filter stack.

Raster outputs such as JPEG and PNG contain the rendered effect, but they do not preserve an editable Smart Filter stack.

Example: Apply Gaussian Blur as a Smart Filter

This example selects a Smart Object layer named Artwork, applies Gaussian Blur, and returns a PSD.

curl -X POST "https://photoshop-api.adobe.io/v2/execute-actions" \
  -H "Authorization: Bearer $TOKEN" \
  -H "x-api-key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "image": {
    "source": {
      "url": "<SIGNED_INPUT_PSD_GET_URL>"
    }
  },
  "options": {
    "actions": [
      {
        "source": {
          "content": "[{\"_obj\":\"select\",\"_target\":[{\"_ref\":\"layer\",\"_name\":\"Artwork\"}]},{\"_obj\":\"gaussianBlur\",\"radius\":{\"_unit\":\"pixelsUnit\",\"_value\":12}}]",
          "contentType": "application/json"
        }
      }
    ]
  },
  "outputs": [
    {
      "mediaType": "image/vnd.adobe.photoshop",
      "destination": {
        "validityPeriod": 3600
      }
    }
  ]
}'

Filter descriptors and parameters vary by filter. Record the operation in Photoshop when you need the exact ActionJSON descriptor for a particular configuration.

Tested Smart Filters

The following 91 filters have been tested with /v2/execute-actions using a PSD Smart Object workflow.

Blur

Distort

Noise

Pixelate

Render

Sharpen

Stylize

Other

Video

Usage considerations