{ "$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" ] } } } } }