ComfyUI Node

Load PSD

Loads a .psd, .psb, .tif, or .tiff file from ComfyUI's input folder and flattens it into an image the rest of the workflow can use -- and also emits the file's individual layers as a LAYERS stack for ComfyUI 0.31+'s layer nodes or this pack's Compose node. Works with ComfyUI alone -- no Photoshop plugin is required just to load a file. Right-click the node and choose 'Open in Photoshop' (or 'Edit Original in Photoshop' once an edit is in progress) to send a .psd/.psb back for editing -- .tif/.tiff files can be loaded but not yet round-tripped. The Photoshop panel plugin, if connected, makes that round trip instant instead of file-based. The edit_original and on_save widgets control where an edit is saved and whether saving it re-runs the workflow; flatten_groups controls whether the layers output lists every layer individually or collapses each top-level group into one layer.

By ericpaulsnowden·Created about a month ago·Updated 10 days ago· 1
Load PSD
    • IMAGE
    • MASK
    • LAYERS
    psd
    edit_originalfalse
    on_saveRe-run workflow
    flatten_groupsfalse
    CategoryPhotoshop Bridge/Handoffs

    Inputs (4)

    NameTypeDefaultDescription
    psdCOMBOThe .psd, .psb, .tif, or .tiff file to load, from ComfyUI's input folder.
    edit_originalBOOLEANfalseWhen on, an edit saves back to your own original file in place instead of a separate managed copy. When off (default), edits are saved to a safe copy and your original file is never touched.
    on_saveCOMBORe-run workflowWhat a save in Photoshop should do. 'Re-run workflow' re-runs the graph automatically so the edit reaches the outputs. 'Update only (don't re-run)' picks up the edit (gallery and badges update) but leaves the workflow alone until you queue it yourself. 'Ignore (do nothing)' skips the save entirely, as if this node weren't watching it.
    flatten_groupsBOOLEANfalseHow the layers output treats layer groups. Off (default): every layer appears individually in one flat list, with group opacity and visibility applied to its layers. On: each top-level group is flattened into a single layer. Does not affect the image output.

    Outputs (3)

    NameTypeDescription
    IMAGEIMAGEThe flattened image, or the latest edit if one has been saved back.
    MASKMASKMarks any transparent area of the image (1.0 = transparent, 0.0 = opaque). All zero when the image has no transparency.
    LAYERSLAYERSThe file's actual layers as a ComfyUI layer stack (LAYERS): every layer's pixels, name, position, opacity, blend mode, and visibility. Connect it to ComfyUI's Create Layered Image node (ComfyUI 0.31+) to rearrange layers in its editor, or to this pack's Compose node to write a layered PSD. Always reflects the file on disk -- text and smart-object layers arrive rasterized, and adjustment layers are skipped. Blending in ComfyUI's compositor looks close to, but not identical to, Photoshop.