ComfyUI Nodes
Porter Duff Image Composite

Porter-Duff Image Composite

comfyUI节点-Porter-Duff Image Composite|Porter-Duff图像合成


  • Class name: PorterDuffImageComposite
  • Category: mask/compositing
  • Output node: False

The PorterDuffImageComposite node is designed to perform image compositing using the Porter-Duff compositing operators. It allows for the combination of source and destination images according to various blending modes, enabling the creation of complex visual effects by manipulating image transparency and overlaying images in creative ways.

Input types

ParameterComfy dtypeDescription
sourceIMAGEThe source image tensor to be composited over the destination image. It plays a crucial role in determining the final visual outcome based on the selected compositing mode.
source_alphaMASKThe alpha channel of the source image, which specifies the transparency of each pixel in the source image. It affects how the source image blends with the destination image.
destinationIMAGEThe destination image tensor that serves as the backdrop over which the source image is composited. It contributes to the final composited image based on the blending mode.
destination_alphaMASKThe alpha channel of the destination image, defining the transparency of the destination image's pixels. It influences the blending of the source and destination images.
modeCOMBO[STRING]The Porter-Duff compositing mode to apply, which determines how the source and destination images are blended together. Each mode creates different visual effects.

Output types

ParameterComfy dtypeDescription
imageIMAGEThe composited image resulting from the application of the specified Porter-Duff mode.
maskMASKThe alpha channel of the composited image, indicating the transparency of each pixel.