Adobe Creative Suite · JSON Structure

Adobe Creative Suite Photoshop Document Operations Structure

Operations to apply to a PSD document

Type: object Properties: 3
CreativeDesignGraphicsPhotographyVideo

DocumentOperations is a JSON Structure definition published by Adobe Creative Suite, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

resize flatten trim

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-creative-suite/refs/heads/main/json-structure/adobe-creative-suite-photoshop-document-operations-structure.json",
  "name": "DocumentOperations",
  "description": "Operations to apply to a PSD document",
  "type": "object",
  "properties": {
    "resize": {
      "type": "object",
      "description": "Resize the document canvas or image",
      "properties": {
        "width": {
          "type": "int32"
        },
        "height": {
          "type": "int32"
        },
        "unit": {
          "type": "string",
          "enum": [
            "pixel",
            "percent"
          ]
        },
        "resampleMethod": {
          "type": "string",
          "enum": [
            "bicubic",
            "bilinear",
            "nearestNeighbor",
            "preserve"
          ]
        }
      }
    },
    "flatten": {
      "type": "boolean",
      "description": "Whether to flatten all layers into a single layer",
      "example": true
    },
    "trim": {
      "type": "object",
      "description": "Trim transparent borders from the image",
      "properties": {
        "basedOn": {
          "type": "string",
          "enum": [
            "transparentPixels",
            "topLeftPixelColor",
            "bottomRightPixelColor"
          ]
        }
      }
    }
  }
}