ComfyUI > Nodes > ComfyUI_XISER_Nodes > PSD Layer Extractor

ComfyUI Node: PSD Layer Extractor

Class Name

XIS_PSDLayerExtractor

Category
XISER_Nodes/Import_Data
Author
grinlau18 (Account age: 944days)
Extension
ComfyUI_XISER_Nodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install ComfyUI_XISER_Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_XISER_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_XISER_Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

PSD Layer Extractor Description

Extracts PSD layers as RGBA image tensors with metadata for AI art manipulation.

PSD Layer Extractor:

The XIS_PSDLayerExtractor is a specialized node designed to extract individual layers from a PSD (Photoshop Document) file, providing both the images and their associated metadata. This node is particularly beneficial for AI artists who work with complex PSD files and need to manipulate or analyze specific layers independently. By converting each layer into an RGBA image tensor, the node ensures that the extracted images maintain their transparency and color integrity. The node also captures essential metadata such as layer dimensions, offsets, and potential transformations like rotation and scaling, which can be crucial for precise image manipulation and alignment in creative projects. Overall, the XIS_PSDLayerExtractor streamlines the process of working with layered PSD files, making it easier to access and utilize individual components for further artistic or analytical purposes.

PSD Layer Extractor Input Parameters:

PSD File

The PSD File parameter is the primary input for the XIS_PSDLayerExtractor node. It accepts a Photoshop Document (PSD) file from which the layers will be extracted. This parameter is crucial as it determines the source of the layers and metadata that the node will process. The PSD file should be a valid and accessible file path, ensuring that the node can read and interpret the file's contents accurately. There are no specific minimum or maximum values for this parameter, but the file must be in the PSD format.

PSD Layer Extractor Output Parameters:

Extracted Layers

The Extracted Layers output parameter provides a list of image tensors representing each layer extracted from the PSD file. Each tensor is in RGBA format, ensuring that the color and transparency information is preserved. This output is essential for users who need to work with individual layers separately, allowing for detailed manipulation and analysis. The output also includes metadata for each layer, such as dimensions, offsets, and any transformations applied, which can be used to understand the layer's position and orientation within the original PSD file.

Metadata

The Metadata output parameter contains detailed information about each extracted layer, including its name, width, height, offset, and any transformations like rotation and scaling. This metadata is crucial for understanding the context and properties of each layer, enabling users to make informed decisions when manipulating or analyzing the layers. The metadata helps maintain the integrity of the original design by providing insights into how each layer fits within the overall composition.

PSD Layer Extractor Usage Tips:

  • Ensure that the PSD file is not corrupted and is accessible from the node's environment to avoid processing errors.
  • Use the metadata output to align and position layers accurately when reconstructing or manipulating the extracted images in other applications.

PSD Layer Extractor Common Errors and Solutions:

Invalid image tensor shape for layer <layer_name>

  • Explanation: This error occurs when the extracted image tensor does not have the expected shape, typically due to an issue with the layer's data or format.
  • Solution: Verify that the PSD file is not corrupted and that the layers are in a compatible format. If the issue persists, try re-saving the PSD file in Photoshop to ensure compatibility.

No valid layers found in PSD file

  • Explanation: This error indicates that the node could not find any layers to extract from the PSD file, possibly due to an empty file or unsupported layer types.
  • Solution: Check the PSD file to ensure it contains layers and that they are not hidden or locked. Re-save the file if necessary to ensure it is in a compatible format.

PSD Layer Extractor Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_XISER_Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

PSD Layer Extractor