{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-creative-suite/refs/heads/main/json-schema/adobe-creative-suite-photoshop-document-operations-schema.json", "title": "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": "integer" }, "height": { "type": "integer" }, "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" ] } } } } }