floyo logo
Powered by
ThinkDiffusion
floyo logo
Powered by
ThinkDiffusion

ComfyUI_LayerStyle

2902

Last updated
2026-01-30

A collection of nodes designed for ComfyUI that enables layer compositing and masking, emulating functionalities similar to Adobe Photoshop. This tool aims to streamline workflows by reducing the need for frequent software transitions while enhancing image processing capabilities.

  • Integrates various masking and layer effects, allowing for sophisticated image manipulations akin to Photoshop.
  • Offers advanced nodes for specific tasks like background removal and edge detection, enhancing the precision of image editing.
  • Supports batch processing and various image formats, improving efficiency for users working with multiple images.

Context

This repository provides a set of nodes specifically tailored for ComfyUI, facilitating advanced image compositing and masking techniques. Its primary goal is to replicate certain Photoshop functionalities, thereby centralizing the workflow and minimizing the need to switch between different software applications.

Key Features & Benefits

The nodes allow users to perform complex image edits such as layering, masking, and applying various visual effects. This functionality is crucial for artists and designers who require high levels of control over their image compositions without leaving the ComfyUI environment.

Advanced Functionalities

The tool includes several advanced capabilities, such as:

  • Ultra Fine Edge Processing: Nodes like MaskEdgeUltraDetailV2 and RmBgUltraV2 utilize sophisticated algorithms (including VitMatte) to ensure high-quality edge detection and background removal, even in complex images.
  • Dynamic Masking Options: Users can create and manipulate masks based on colors or specific regions within images, allowing for targeted adjustments and effects.
  • Batch Processing: The ability to handle multiple images at once enhances productivity, especially when working on large projects.

Practical Benefits

This tool significantly enhances the workflow within ComfyUI by providing users with more control over image quality and editing processes. The integration of advanced masking and compositing nodes allows for a more streamlined and efficient editing experience, making it easier to achieve professional results.

Credits/Acknowledgments

The LayerStyle nodes are licensed under the MIT license, with contributions and code derived from various open-source projects. Acknowledgments are given to the original authors for their foundational work that has been incorporated into this tool.

Inner Nodes

LayerColor: AutoAdjust, LayerColor: AutoAdjustV2, LayerColor: AutoBrightness, LayerColor: Brightness & Contrast, LayerColor: BrightnessContrastV2, LayerColor: Color of Shadow & Highlight, LayerColor: ColorAdapter, LayerColor: ColorBalance, LayerColor: ColorTemperature, LayerColor: ColorofShadowHighlightV2, LayerColor: Exposure, LayerColor: Gamma, LayerColor: HSV, LayerColor: LAB, LayerColor: LUT Apply, LayerColor: Levels, LayerColor: Negative, LayerColor: RGB, LayerColor: YUV, LayerFilter: AddGrain, LayerFilter: ChannelShake, LayerFilter: ColorMap, LayerFilter: DistortDisplace, LayerFilter: Film, LayerFilter: FilmV2, LayerFilter: GaussianBlur, LayerFilter: GaussianBlurV2, LayerFilter: HDREffects, LayerFilter: HalfTone, LayerFilter: LightLeak, LayerFilter: MotionBlur, LayerFilter: Sharp & Soft, LayerFilter: SkinBeauty, LayerFilter: SoftLight, LayerFilter: WaterColor, LayerMask: BlendIf Mask, LayerMask: CreateGradientMask, LayerMask: DrawRoundedRectangle, LayerMask: ImageToMask, LayerMask: LoadSegformerModel, LayerMask: MaskBoxDetect, LayerMask: MaskBoxExtend, LayerMask: MaskByColor, LayerMask: MaskEdgeShrink, LayerMask: MaskEdgeUltraDetail, LayerMask: MaskEdgeUltraDetail V2, LayerMask: MaskEdgeUltraDetail V3, LayerMask: MaskGradient, LayerMask: MaskGrain, LayerMask: MaskGrow, LayerMask: MaskInvert, LayerMask: MaskMotionBlur, LayerMask: MaskPreview, LayerMask: MaskStroke, LayerMask: PixelSpread, LayerMask: RemBgUltra, LayerMask: RmBgUltra V2, LayerMask: SegformerB2ClothesUltra, LayerMask: SegformerClothesPipelineLoader, LayerMask: SegformerClothesSetting, LayerMask: SegformerFashionPipelineLoader, LayerMask: SegformerFashionSetting, LayerMask: SegformerUltraV2, LayerMask: SegformerUltraV3, LayerMask: Shadow & Highlight Mask, LayerMask: ShadowHighlightMaskV2, LayerStyle: ColorOverlay, LayerStyle: ColorOverlay V2, LayerStyle: DropShadow, LayerStyle: DropShadow V2, LayerStyle: DropShadow V3, LayerStyle: Gradient Map, LayerStyle: GradientOverlay, LayerStyle: GradientOverlay V2, LayerStyle: InnerGlow, LayerStyle: InnerGlow V2, LayerStyle: InnerShadow, LayerStyle: InnerShadow V2, LayerStyle: OuterGlow, LayerStyle: OuterGlow V2, LayerStyle: Stroke, LayerStyle: Stroke V2, LayerUtility: AnyRerouter, LayerUtility: BatchSelector, LayerUtility: Boolean, LayerUtility: BooleanOperator, LayerUtility: BooleanOperatorV2, LayerUtility: CheckMask, LayerUtility: CheckMaskV2, LayerUtility: ChoiceTextPreset, LayerUtility: ColorImage, LayerUtility: ColorImage V2, LayerUtility: ColorName, LayerUtility: ColorPicker, LayerUtility: CropBoxResolve, LayerUtility: CropByMask, LayerUtility: CropByMask V2, LayerUtility: CropByMask V3, LayerUtility: ExtendCanvas, LayerUtility: ExtendCanvasV2, LayerUtility: Float, LayerUtility: FluxKontextImageScale, LayerUtility: GetImageSize, LayerUtility: GetMainColors, LayerUtility: GetMainColorsV2, LayerUtility: GradientImage, LayerUtility: GradientImage V2, LayerUtility: GrayValue, LayerUtility: HLFrequencyDetailRestore, LayerUtility: HSV Value, LayerUtility: ICMask, LayerUtility: ICMaskCropBack, LayerUtility: If, LayerUtility: ImageBatchToList, LayerUtility: ImageBlend, LayerUtility: ImageBlend V2, LayerUtility: ImageBlendAdvance, LayerUtility: ImageBlendAdvance V2, LayerUtility: ImageBlendAdvance V3, LayerUtility: ImageChannelMerge, LayerUtility: ImageChannelSplit, LayerUtility: ImageCombineAlpha, LayerUtility: ImageCompositeHandleMask, LayerUtility: ImageHub, LayerUtility: ImageListToBatch, LayerUtility: ImageMaskScaleAs, LayerUtility: ImageMaskScaleAsV2, LayerUtility: ImageOpacity, LayerUtility: ImageReel, LayerUtility: ImageReelComposit, LayerUtility: ImageRemoveAlpha, LayerUtility: ImageScaleByAspectRatio, LayerUtility: ImageScaleByAspectRatio V2, LayerUtility: ImageScaleRestore, LayerUtility: ImageScaleRestore V2, LayerUtility: ImageShift, LayerUtility: ImageTaggerSave, LayerUtility: ImageTaggerSaveV2, LayerUtility: Integer, LayerUtility: LayerImageTransform, LayerUtility: LayerMaskTransform, LayerUtility: LoadImagesFromPath, LayerUtility: LoadVQAModel, LayerUtility: NameToColor, LayerUtility: NanoBananaImageScale, LayerUtility: NumberCalculator, LayerUtility: NumberCalculatorV2, LayerUtility: PrintInfo, LayerUtility: PurgeVRAM, LayerUtility: PurgeVRAM V2, LayerUtility: QueueStop, LayerUtility: RGB Value, LayerUtility: RandomGenerator, LayerUtility: RandomGeneratorV2, LayerUtility: RestoreCropBox, LayerUtility: RoundedRectangle, LayerUtility: Seed, LayerUtility: SimpleTextImage, LayerUtility: String, LayerUtility: StringCondition, LayerUtility: SwitchCase, LayerUtility: TextBox, LayerUtility: TextImage, LayerUtility: TextImage V2, LayerUtility: TextJoin, LayerUtility: TextJoinV2, LayerUtility: TextPreseter, LayerUtility: VQAPrompt, LayerUtility: XY to Percent