capabilities.work

Inspect and Edit Layers

A 4-step recipe with Adobe Photoshop. We can help you get access.

Recipe · 4 steps

Inspect and Edit Layers

Resolve a PSD's layer tree and apply visibility and adjustment edits.

  1. Retrieve the manifest so the layer tree, layer ids, names, types, and bounds are known before any edit is applied.
  2. Poll the PSD service status endpoint until the manifest job completes. The submit call returns the absolute status URL in _links.self.href; the jobId this operation requires is the final path segment of that URL, so a runner takes that segm
  3. Edit the named layer, setting its visibility and applying a brightness and contrast adjustment, then write the modified document to the output URL.
  4. Poll until the document operations job reports succeeded and the edited document has been written to the output URL.
What you'll need to have ready
  • documentUrl: Pre-signed GET URL of the source PSD.
  • layerName: Name of the layer to edit.
  • visible: Visibility to set on the target layer.
  • brightness: Brightness adjustment to apply to the layer.
  • contrast: Contrast adjustment to apply to the layer.
  • outputUrl: Pre-signed PUT URL where the edited document is written.
  • outputType: Output format, e.g. vnd.adobe.photoshop or image/jpeg.
For your developer

Arazzo workflow adobe-photoshop:layer-edit, 4 operations: getDocumentManifest → getPsdJobStatus → modifyDocument → getPsdJobStatus. Specs on APIs.io.