[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-72360":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},72360,"ComfyUI_LayerStyle","chflame163\u002FComfyUI_LayerStyle","chflame163","A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.","",null,"Python",3058,198,17,341,0,8,18,42,24,28.9,"MIT License",false,"main",true,[],"2026-06-12 02:03:02","# ComfyUI Layer Style\r\n\r\n## Important note\r\nSplit some nodes of the dependencies that are prone to problems into [ComfyUI_LayerStyle_Advance](https:\u002F\u002Fgithub.com\u002Fchflame163\u002FComfyUI_LayerStyle_Advance) repository. Including:     \r\nLayerMask: BiRefNetUltra, LayerMask: BiRefNetUltraV2, LayerMask: LoadBiRefNetModel, LayerMask: LoadBiRefNetModelV2,    \r\nLayerMask: EVFSAMUltra, LayerMask: Florence2Ultra, LayerMask: LoadFlorence2Model, LayerUtility: Florence2Image2Prompt,    \r\nLayerUtility: GetColorTone, LayerUtility: GetColorToneV2, LayerMask: HumanPartsUltra,  LayerMask: BenUltra, LayerMask: LoadBenModel,        \r\nLayerUtility: ImageAutoCrop, LayerUtility: ImageAutoCropV2, LayerUtility: ImageAutoCropV3,    \r\nLayerUtility: ImageRewardFilter, LayerUtility: LoadJoyCaption2Model, LayerUtility: JoyCaption2Split,    \r\nLayerUtility: JoyCaption2, LayerUtility: JoyCaption2ExtraOptions, LayerUtility: LaMa,    \r\nLayerUtility: LlamaVision, LayerUtility: LoadPSD, LayerMask: MaskByDifferent, LayerMask: MediapipeFacialSegment,    \r\nLayerMask: BBoxJoin, LayerMask: DrawBBoxMask, LayerMask: ObjectDetectorFL2, LayerMask: ObjectDetectorMask,    \r\nLayerMask: ObjectDetectorYOLO8, LayerMask: ObjectDetectorYOLOWorld, LayerMask: PersonMaskUltra, LayerMask: PersonMaskUltra V2,    \r\nLayerUtility: PhiPrompt, LayerUtility: PromptEmbellish, LayerUtility: PromptTagger, LayerUtility: CreateQRCode, LayerUtility: DecodeQRCode,    \r\nLayerUtility: QWenImage2Prompt, LayerMask: SAM2Ultra, LayerMask: SAM2VideoUltra, LayerUtility: SaveImagePlus, LayerUtility: SD3NegativeConditioning,    \r\nLayerMask: SegmentAnythingUltra, LayerMask: SegmentAnythingUltra V2, LayerMask: TransparentBackgroundUltra,     \r\nLayerUtility: UserPromptGeneratorTxt2ImgPrompt, LayerUtility: UserPromptGeneratorTxt2ImgPromptWithReference, LayerUtility: UserPromptGeneratorReplaceWord,    \r\nLayerUtility: AddBlindWaterMark, LayerUtility: ShowBlindWaterMark, LayerMask: YoloV8Detect\r\n\r\nIf there are recent updates, you need to install [ComfyUI_LayerStyle_Advance](https:\u002F\u002Fgithub.com\u002Fchflame163\u002FComfyUI_LayerStyle_Advance) to ensure that previous workflows do not lose nodes. \r\nIf the problem is caused by splitting the warehouse, please roll back the plugin version to```3d4a3526a9d1a19671a133e9215077bda520ee5d```\r\nOpen the terminal in the plugin directory and use the following command to roll back the version:\r\n```\r\ngit reset --hard 3d4a3526a9d1a19671a133e9215077bda520ee5d\r\n```\r\n\r\n\r\n[中文说明点这里](.\u002FREADME_CN.MD)    \r\n\r\n商务合作请联系email [chflame@163.com](mailto:chflame@163.com).\r\n\r\nFor business cooperation, please contact email [chflame@163.com](mailto:chflame@163.com).\r\n\r\nA set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.  \r\n\r\nIt migrate some basic functions of PhotoShop to ComfyUI, aiming to centralize the workflow and reduce the frequency of software switching.  \r\n\r\n![image](image\u002Ftitle.jpg)    \r\n\u003Cfont size=\"1\">*this workflow (title_example_workflow.json) is in the workflow directory.  \u003C\u002Ffont>\u003Cbr \u002F> \r\n\r\n## Example workflow\r\n\r\nSome JSON workflow files in the    ```workflow``` directory, That's examples of how these nodes can be used in ComfyUI.\r\n\r\n## How to install\r\n\r\n(Taking ComfyUI official portable package and Aki ComfyUI package as examples, please modify the dependency environment directory for other ComfyUI environments)\r\n\r\n### Install plugin\r\n\r\n* Recommended use ComfyUI Manager for installation.\r\n\r\n* Or open the cmd window in the plugin directory of ComfyUI, like ```ComfyUI\\custom_nodes```，type    \r\n  \r\n  ```\r\n  git clone https:\u002F\u002Fgithub.com\u002Fchflame163\u002FComfyUI_LayerStyle.git\r\n  ```\r\n\r\n* Or download the zip file and extracted, copy the resulting folder to ```ComfyUI\\custom_nodes```    \r\n\r\n### Install dependency packages\r\n\r\n* for ComfyUI official portable package, double-click the ```install_requirements.bat``` in the plugin directory, for Aki ComfyUI package double-click on the ```install_requirements_aki.bat``` in the plugin directory, and wait for the installation to complete.\r\n\r\n* Or install dependency packages, open the cmd window in the ComfyUI_LayerStyle plugin directory like \r\n  ```ComfyUI\\custom_nodes\\ComfyUI_LayerStyle``` and enter the following command,\r\n\r\n&emsp;&emsp;for ComfyUI official portable package, type:\r\n\r\n```\r\n..\\..\\..\\python_embeded\\python.exe -s -m pip install -r requirements.txt\r\n.\\repair_dependency.bat\r\n```\r\n\r\n&emsp;&emsp;for Aki ComfyUI package, type:\r\n\r\n```\r\n..\\..\\python\\python.exe -s -m pip install -r requirements.txt\r\n.\\repair_dependency_aki.bat\r\n```\r\n\r\n* Restart ComfyUI.\r\n\r\n### Download Model Files\r\n\r\nChinese domestic users from  [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1T_uXMX3OKIWOJLPuLijrgA?pwd=1yye) or [QuarkNetdisk](https:\u002F\u002Fpan.quark.cn\u002Fs\u002F4802d6bca7cb) , other users from [huggingface.co\u002Fchflame163\u002FComfyUI_LayerStyle](https:\u002F\u002Fhuggingface.co\u002Fchflame163\u002FComfyUI_LayerStyle\u002Ftree\u002Fmain)  \r\ndownload all files and copy them to ```ComfyUI\\models``` folder. This link provides all the model files required for this plugin.\r\nOr download the model file according to the instructions of each node.     \r\nSome nodes named \"Ultra\" will use the vitmatte model, download the [vitmatte model](https:\u002F\u002Fhuggingface.co\u002Fhustvl\u002Fvitmatte-small-composition-1k\u002Ftree\u002Fmain) and copy to ```ComfyUI\u002Fmodels\u002Fvitmatte``` folder, it is also included in the download link above. \r\n\r\n## Common Issues\r\n\r\nIf the node cannot load properly or there are errors during use, please check the error message in the ComfyUI terminal window. The following are common errors and their solutions.\r\n\r\n### Warning: xxxx.ini not found, use default xxxx..\r\n\r\nThis warning message indicates that the ini file cannot be found and does not affect usage. If you do not want to see these warnings, please modify all ```*.ini.example``` files in the plugin directory to ```*.ini```.\r\n\r\n### Cannot import name 'guidedFilter' from 'cv2.ximgproc'\r\n\r\nThis error is caused by incorrect version of the ```opencv-contrib-python``` package，or this package is overwriteen by other opencv packages. \r\n\r\n### NameError: name 'guidedFilter' is not defined\r\n\r\nThe reason for the problem is the same as above.\r\n#### For the issues with the above, please double click ```repair_dependency.bat``` (for Official ComfyUI Protable) or  ```repair_dependency_aki.bat``` (for ComfyUI-aki-v1.x) in the plugin folder to automatically fix them.\r\n\r\n### Cannot import name 'VitMatteImageProcessor' from 'transformers'\r\n\r\nThis error is caused by the low version of ```transformers``` package. \r\n\r\n### insightface Loading very slow\r\n\r\nThis error is caused by the low version of ```protobuf``` package. \r\n\r\n\r\n### onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page\r\n\r\nSolution:\r\nReinstall the  ```onnxruntime``` dependency package.\r\n\r\n### Error loading model xxx: We couldn't connect to huggingface.co ...\r\n\r\nCheck the network environment. If you cannot access huggingface.co normally in China, try modifying the huggingface_hub package to force the use hf_mirror.\r\n\r\n* Find ```constants.py``` in the directory of ```huggingface_hub``` package (usually ```Lib\u002Fsite packages\u002Fhuggingface_hub``` in the virtual environment path),\r\n  Add a line after ```import os```\r\n  \r\n  ```\r\n  os.environ['HF_ENDPOINT'] = 'https:\u002F\u002Fhf-mirror.com'\r\n  ```\r\n\r\n### ValueError: Trimap did not contain foreground values (xxxx...)\r\n\r\nThis error is caused by the mask area being too large or too small when using the ```PyMatting``` method to handle the mask edges.    \r\n\r\nSolution:\r\n\r\n* Please adjust the parameters to change the effective area of the mask. Or use other methods to handle the edges.\r\n\r\n### Requests.exceptions.ProxyError: HTTPSConnectionPool(xxxx...)\r\n\r\nWhen this error has occurred, please check the network environment.\r\n\r\n\r\n## Update\r\n\r\n\u003Cfont size=\"4\">**If the dependency package error after updating,  please double clicking ```repair_dependency.bat``` (for Official ComfyUI Protable) or  ```repair_dependency_aki.bat``` (for ComfyUI-aki-v1.x) in the plugin folder to reinstall the dependency packages. \u003C\u002Ffont>\u003Cbr \u002F>    \r\n\r\n* Commit [ImageBatchToList](#ImageBatchToList) and [ImageListToBatch](#ImageListToBatch) nodes, Used for converting single batches of images into multiple small batches and vice versa, with option to define the maximum number of images in each small batch. \r\n* Commit [DistortDisplace](#DistortDisplace) node,  Generate displacement deformation effects for material images.\r\n* Commit [MaskEdgeUltraDetailV3](#MaskEdgeUltraDetailV3)  node, By processing different partitions through inputting a trimap mask, a more refined overall mask including translucent parts is generated. \r\n* Commit [ImageCompositeHandleMask](#ImageCompositeHandleMask) node, used to generate local feathering masks and cropping data.\r\n* Commit [DrawRoundedRectangle](#DrawRoundedRectangle) node, used to generate rounded rectangle masks.\r\n* Commit [FluxKontextImageScale](#FluxKontextImageScale) node, based on official node modifications, used to resizes the image to one that is more optimal for flux kontext. For images with different aspect ratio, the scale will be adjusted appropriately to maintain all information.\r\n* Commit [MaskBoxExtend](#MaskBoxExtend) node, used to generate BBOX mask extension range and output as Mask.\r\n* Commit [ColorNegative](#ColorNegative) node, used to invert the color of image.\r\n* Commit [LoadImagesFromPath](#LoadImagesFromPath) and [ImageTaggerSaveV2](#ImageTaggerSaveV2) nodes, used to load a list of images from a folder and save images and tagger text file with corresponding file names.\r\n* Commit [LoadImageFromPath](LoadImageFromPath) node, The images in a folder can be loaded and output as image list, also supporting output of a list corresponding to a file name.\r\n* Commit [SegformerUltraV3](SegformerUltraV3), [LoadSegformerModel](LoadSegformerModel), [SegformerClothesSetting](SegformerClothesSetting) and [SegformerFashionSetting](SegformerFashionSetting) nodes, Separate the loading of models and settings to save resources when using multiple nodes.\r\n* Add multiple languages and increase support for 5 languages: Chinese, French, Japanese, Korean and Russian. This feature producted by [ComfyUI-Globalization-Node-Translation](https:\u002F\u002Fgithub.com\u002Fyamanacn\u002FComfyUI-Globalization-Node-Translation), thank you to the original author.\r\n* Commit [HalfTone](#HalfTone) node, use for halftone processing of images.\r\n* Add QuarkNetdisk model download link.\r\n* Support numpy 2.x dependency package.\r\n* Commit [PurgeVRAM V2](#PurgeVRAMV2) node.\r\n* Commit [ChoiceTextPreset](#ChoiceTextPreset) and [TextPreseter](#TextPreseter) nodes, used for preset text and selecting preset text output.\r\n* [StringCondition](#StringCondition) add the option of comparing strings to determine if they are the same.\r\n* Commit [NameToColor](#NameToColor) node, Output colors based on their names.\r\n* Commit [ImageMaskScaleAsV2](#ImageMaskScaleAsV2) node, Add background color settings on the basis of the original node.\r\n* Commit [RoundedRectangle](#RoundedRectangle) node, Used to create rounded rectangle and mask.\r\n* Commit [AnyRerouter](#AnyRerouter) node, Used for reroute any type of data.\r\n* Commit [ICMask](#ICMask) and [ICMaskCropBack](#ICMaskCropBack) nodes, Used for generating In-Context image and mask, and automatic crop back. The code is from [lrzjason\u002FComfyui-In-Context-Lora-Utils](https:\u002F\u002Fgithub.com\u002Flrzjason\u002FComfyui-In-Context-Lora-Utils) , Thanks to the original author @小志Jason.\r\n* Commit [GetMainColorsV2](#GetMainColorsV2) node, add sorting by color area and output color values and proportions in the preview image. This part of the code was improved by @ HL, thanks.\r\n* Optimize dependency packages. Optimize some algorithms.\r\n* Split some nodes of the dependencies that are prone to problems into [ComfyUI_LayerStyle_Advance](#https:\u002F\u002Fgithub.com\u002Fchflame163\u002FComfyUI_LayerStyle_Advance) repository. Including:\r\nLayerMask: BiRefNetUltra, LayerMask: BiRefNetUltraV2, LayerMask: LoadBiRefNetModel, LayerMask: LoadBiRefNetModelV2,    \r\nLayerMask: EVFSAMUltra, LayerMask: Florence2Ultra, LayerMask: LoadFlorence2Model, LayerUtility: Florence2Image2Prompt,    \r\nLayerUtility: GetColorTone, LayerUtility: GetColorToneV2, LayerMask: HumanPartsUltra,    \r\nLayerUtility: ImageAutoCrop, LayerUtility: ImageAutoCropV2, LayerUtility: ImageAutoCropV3,    \r\nLayerUtility: ImageRewardFilter, LayerUtility: LoadJoyCaption2Model, LayerUtility: JoyCaption2Split,    \r\nLayerUtility: JoyCaption2, LayerUtility: JoyCaption2ExtraOptions, LayerUtility: LaMa,    \r\nLayerUtility: LlamaVision, LayerUtility: LoadPSD, LayerMask: MaskByDifferent, LayerMask: MediapipeFacialSegment,    \r\nLayerMask: BBoxJoin, LayerMask: DrawBBoxMask, LayerMask: ObjectDetectorFL2, LayerMask: ObjectDetectorMask,    \r\nLayerMask: ObjectDetectorYOLO8, LayerMask: ObjectDetectorYOLOWorld, LayerMask: PersonMaskUltra, LayerMask: PersonMaskUltra V2,    \r\nLayerUtility: PhiPrompt, LayerUtility: PromptEmbellish, LayerUtility: PromptTagger, LayerUtility: CreateQRCode, LayerUtility: DecodeQRCode,    \r\nLayerUtility: QWenImage2Prompt, LayerMask: SAM2Ultra, LayerMask: SAM2VideoUltra, LayerUtility: SaveImagePlus, LayerUtility: SD3NegativeConditioning,    \r\nLayerMask: SegmentAnythingUltra, LayerMask: SegmentAnythingUltra V2, LayerMask: TransparentBackgroundUltra,     \r\nLayerUtility: UserPromptGeneratorTxt2ImgPrompt, LayerUtility: UserPromptGeneratorTxt2ImgPromptWithReference, LayerUtility: UserPromptGeneratorReplaceWord,    \r\nLayerUtility: AddBlindWaterMark, LayerUtility: ShowBlindWaterMark, LayerMask: YoloV8Detect\r\n\r\n* Merge the PR submitted by [alexisrolland](https:\u002F\u002Fgithub.com\u002Falexisrolland) , commit the ```Image Blend Advanced v3``` and ```Drop Shadow v3``` nodes, support transparent background.\r\n* Commit [BenUltra](#BenUltra) and [LoadBenModel](#LoadBenModel) nodes. These two nodes are the implementation of [PramaLLC\u002FBEN](https:\u002F\u002Fhuggingface.co\u002FPramaLLC\u002FBEN) project in ComfyUI.   \r\nDownload the ```BEN_Base.pth``` and ```config.json``` from [huggingface](https:\u002F\u002Fhuggingface.co\u002FPramaLLC\u002FBEN\u002Ftree\u002Fmain) or [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F17mdBxfBl_R97mtNHuiHsxQ?pwd=2jn3) and copy to ```ComfyUI\u002Fmodels\u002FBEN``` folder.\r\n* Merge the PR submitted by [jimlee2048](https:\u002F\u002Fgithub.com\u002Fjimlee2048), add the LoadBiRefNetModelV2 node, and support loading RMBG 2.0 models.       \r\nDownload the model files from [huggingface](https:\u002F\u002Fhuggingface.co\u002Fbriaai\u002FRMBG-2.0\u002Ftree\u002Fmain) or [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1viIXlZnpTYTKkm2F-QMj_w?pwd=axr9) and copy to ```ComfyUI\u002Fmodels\u002FBiRefNet\u002FRMBG-2.0``` folder.\r\n\r\n* Florence2 nodes support base-PromptGen-v2.0 and large-PromptGen-v2.0, Download ```base-PromptGen-v2.0``` and ```large-PromptGen-v2.0``` two folder from [huggingface](https:\u002F\u002Fhuggingface.co\u002Fchflame163\u002FComfyUI_LayerStyle\u002Ftree\u002Fmain\u002FComfyUI\u002Fmodels\u002Fflorence2) or [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1BVvXt3N7zrBnToyF-GrC_A?pwd=xm0x) and copy to ```ComfyUI\u002Fmodels\u002Fflorence2``` folder.\r\n* [SAM2Ultra](#SAM2Ultra) and ObjectDetector nodes support image batch.\r\n* [SAM2Ultra](#SAM2Ultra) and [SAM2VideoUltra](#SAM2VideoUltra) nodes add support for SAM2.1 model, including [kijai](https:\u002F\u002Fgithub.com\u002Fkijai)'s FP16 model. Download model files from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1xaQYBA6ktxvAxm310HXweQ?pwd=auki) or [huggingface.co\u002FKijai\u002Fsam2-safetensors](https:\u002F\u002Fhuggingface.co\u002FKijai\u002Fsam2-safetensors\u002Ftree\u002Fmain) and copy to ```ComfyUI\u002Fmodels\u002Fsam2``` folder.\r\n* Commit [JoyCaption2Split](#JoyCaption2Split) and [LoadJoyCaption2Model](#LoadJoyCaption2Model) nodes, Sharing the model across multiple JoyCaption2 nodes improves efficiency.\r\n* [SegmentAnythingUltra](#SegmentAnythingUltra) and [SegmentAnythingUltraV2](#SegmentAnythingUltraV2) add the  ```cache_model``` option, Easy to flexibly manage VRAM usage.\r\n\r\n* Due to the high version requirements of the [LlamaVision](#LlamaVision) node for ```transformers```, which affects the loading of some older third-party plugins, so the LayerStyle plugin has lowered the default requirement to 4.43.2. If you need to run LlamaVision, please upgrade to 4.45.0 or above on your own. \r\n\r\n* Commit [JoyCaption2](#JoyCaption2) and [JoyCaption2ExtraOptions](#JoyCaption2ExtraOptions) nodes. New dependency packages need to be installed.\r\nUse the JoyCaption-alpha-two model for local inference. Can be used to generate prompt words. this node is https:\u002F\u002Fhuggingface.co\u002FJohn6666\u002Fjoy-caption-alpha-two-cli-mod Implementation in ComfyUI, thank you to the original author.\r\nDownload models form [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1dOjbUEacUOhzFitAQ3uIeQ?pwd=4ypv) and [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1mH1SuW45Dy6Wga7aws5siQ?pwd=w6h5) , \r\nor [huggingface\u002FOrenguteng](https:\u002F\u002Fhuggingface.co\u002FOrenguteng\u002FLlama-3.1-8B-Lexi-Uncensored-V2\u002Ftree\u002Fmain) and [huggingface\u002Funsloth](https:\u002F\u002Fhuggingface.co\u002Funsloth\u002FMeta-Llama-3.1-8B-Instruct\u002Ftree\u002Fmain) , then copy to ```ComfyUI\u002Fmodels\u002FLLM```,\r\nDownload models from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1pkVymOsDcXqL7IdQJ6lMVw?pwd=v8wp) or [huggingface\u002Fgoogle](https:\u002F\u002Fhuggingface.co\u002Fgoogle\u002Fsiglip-so400m-patch14-384\u002Ftree\u002Fmain) , and copy to ```ComfyUI\u002Fmodels\u002Fclip```,\r\nDonwload the ```cgrkzexw-599808``` folder from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F12TDwZAeI68hWT6MgRrrK7Q?pwd=d7dh) or [huggingface\u002FJohn6666](https:\u002F\u002Fhuggingface.co\u002FJohn6666\u002Fjoy-caption-alpha-two-cli-mod\u002Ftree\u002Fmain) , and copy to ```ComfyUI\u002Fmodels\u002FJoy_caption```。\r\n\r\n* Commit [LlamaVision](#LlamaVision) node, Use the Llama 3.2 vision model for local inference. Can be used to generate prompt words. part of the code for this node comes from [ComfyUI-PixtralLlamaMolmoVision](https:\u002F\u002Fgithub.com\u002FSeanScripts\u002FComfyUI-PixtralLlamaMolmoVision), thank you to the original author.\r\nTo use this node, the ```transformers``` need upgraded to 4.45.0 or higher.\r\nDownload models from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F18oHnTrkNMiwKLMcUVrfFjA?pwd=4g81) or [huggingface\u002FSeanScripts](https:\u002F\u002Fhuggingface.co\u002FSeanScripts\u002FLlama-3.2-11B-Vision-Instruct-nf4\u002Ftree\u002Fmain) , and copy to ```ComfyUI\u002Fmodels\u002FLLM```.\r\n\r\n* Commit [RandomGeneratorV2](#RandomGeneratorV2) node, add least random range and seed options.\r\n* Commit [TextJoinV2](#TextJoinV2) node, add delimiter options on top of TextJion.\r\n* Commit [GaussianBlurV2](#GaussianBlurV2) node, The parameter accuracy has been improved to 0.01.\r\n* Commit [UserPromptGeneratorTxtImgWithReference](#UserPromptGeneratorTxtImgWithReference) node.\r\n* Commit [GrayValue](#GrayValue) node, output the grayscale values corresponding to the RGB color values.\r\n* [LUT Apply](#LUT), [TextImageV2](#TextImageV2), [TextImage](#TextImage), [SimpleTextImage](#SimpleTextImage) nodes to support defining multiple folders in ```resource-dir.ini```, separated by commas, semicolons, or spaces. Simultaneously supports refreshing real-time updates.\r\n* [LUT Apply](#LUT), [TextImageV2](#TextImageV2), [TextImage](#TextImage), [SimpleTextImage](#SimpleTextImage) nodes support defining multi directory fonts and lut folders, and support refreshing and real-time updates.\r\n* Commit [HumanPartsUltra](#HumanPartsUltra) node, used to generate human body parts masks. It is based on the warrper of [metal3d\u002FComfyUI_Human_Parts](https:\u002F\u002Fgithub.com\u002Fmetal3d\u002FComfyUI_Human_Parts), thank the original author.\r\n  Download model file from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1-6uwH6RB0FhIVfa3qO7hhQ?pwd=d862) or [huggingface](https:\u002F\u002Fhuggingface.co\u002FMetal3d\u002Fdeeplabv3p-resnet50-human\u002Ftree\u002Fmain) and copy to ```ComfyUI\\models\\onnx\\human-parts``` folder.\r\n* ObjectDetector nodes add sort by confidence option.\r\n* Commit [DrawBBoxMask](#DrawBBoxMask) node, used to convert the BBoxes output by the Object Detector node into a mask.\r\n* Commit [UserPromptGeneratorTxtImg](#UserPromptGeneratorTxtImg) and [UserPromptGeneratorReplaceWord](#UserPromptGeneratorReplaceWord) nodes, Used to generate text and image prompts and replace prompt content.\r\n* Commit [PhiPrompt](#PhiPrompt) node, Use Microsoft Phi 3.5 text and visual models for local inference. Can be used to generate prompt words, process prompt words, or infer prompt words from images. Running this model requires at least 16GB of video memory.      \r\n  Download model files from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1BdTLdaeGC3trh1U3V-6XTA?pwd=29dh) or [huggingface.co\u002Fmicrosoft\u002FPhi-3.5-vision-instruct](https:\u002F\u002Fhuggingface.co\u002Fmicrosoft\u002FPhi-3.5-vision-instruct\u002Ftree\u002Fmain) and [huggingface.co\u002Fmicrosoft\u002FPhi-3.5-mini-instruct](https:\u002F\u002Fhuggingface.co\u002Fmicrosoft\u002FPhi-3.5-mini-instruct\u002Ftree\u002Fmain) and copy to ```ComfyUI\\models\\LLM``` folder.\r\n* Commit [GetMainColors](#GetMainColors) node, it can obtained 5 main colors of image. Commit [ColorName](#ColorName) node, it can obtain the color name of input color value.\r\n* Duplicate the [Brightness & Contrast](#Brightness) node as [BrightnessContrastV2](#BrightnessContrastV2), the [Color of Shadow & Highlight](#Highlight) node as [ColorofShadowHighlight](#HighlightV2), and [Shadow & Highlight Mask](#Shadow) to [Shadow Highlight Mask V2](#ShadowV2), to avoid errors in ComfyUI workflow parsing caused by the \"&\" character in the node name.\r\n* Commit [VQAPrompt](#VQAPrompt) and [LoadVQAModel](#LoadVQAModel) nodes.      \r\n  Download the model from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1ILREVgM0eFJlkWaYlKsR0g?pwd=yw75) or [huggingface.co\u002FSalesforce\u002Fblip-vqa-capfilt-large](https:\u002F\u002Fhuggingface.co\u002FSalesforce\u002Fblip-vqa-capfilt-large\u002Ftree\u002Fmain) and [huggingface.co\u002FSalesforce\u002Fblip-vqa-base](https:\u002F\u002Fhuggingface.co\u002FSalesforce\u002Fblip-vqa-base\u002Ftree\u002Fmain) and copy to ```ComfyUI\\models\\VQA``` folder.\r\n* [Florence2Ultra](#Florence2Ultra),  [Florence2Image2Prompt](#Florence2Image2Prompt) 和 [LoadFlorence2Model](#LoadFlorence2Model) nodes support the MiaoshouAI\u002FFlorence-2-large-PromptGen-v1.5 and MiaoshouAI\u002FFlorence-2-base-PromptGen-v1.5 model.    \r\n  Download model files from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1xOL6x6LijIMSh_3woErjJg?pwd=t3xa) or [huggingface.co\u002FMiaoshouAI\u002FFlorence-2-large-PromptGen-v1.5](https:\u002F\u002Fhuggingface.co\u002FMiaoshouAI\u002FFlorence-2-large-PromptGen-v1.5\u002Ftree\u002Fmain) and [huggingface.co\u002FMiaoshouAI\u002FFlorence-2-base-PromptGen-v1.5](https:\u002F\u002Fhuggingface.co\u002FMiaoshouAI\u002FFlorence-2-base-PromptGen-v1.5\u002Ftree\u002Fmain) , copy to  ```ComfyUI\\models\\florence2``` folder.\r\n* Commit [BiRefNetUltraV2](#BiRefNetUltraV2) and [LoadBiRefNetModel](#LoadBiRefNetModel) nodes, that support the use of the latest BiRefNet model.\r\n  Download model file from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F12z3qUuqag3nqpN2NJ5pSzg?pwd=ek65) or [GoogleDrive](https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F1s2Xe0cjq-2ctnJBR24563yMSCOu4CcxM) named ```BiRefNet-general-epoch_244.pth``` to  ```ComfyUI\u002FModels\u002FBiRefNet\u002Fpth``` folder. You can also download more BiRefNet models and put them here.\r\n* [ExtendCanvasV2](#ExtendCanvasV2) node support negative value input, it means image will be cropped.\r\n* The default title color of nodes is changed to blue-green, and nodes in LayerStyle, LayerColor, LayerMask, LayerUtility, and LayerFilter are distinguished by different colors.\r\n* The Object Detector nodes added sort bbox option, which allows sorting from left to right, top to bottom, and large to small, making object selection more intuitive and convenient. The nodes released yesterday has been abandoned, please manually replace it with the new version node (sorry).\r\n* Commit [SAM2Ultra](#SAM2Ultra), [SAM2VideoUltra](#SAM2VideoUltra), [ObjectDetectorFL2](#ObjectDetectorFL2), [ObjectDetectorYOLOWorld](#ObjectDetectorYOLOWorld), [ObjectDetectorYOLO8](#ObjectDetectorYOLO8), [ObjectDetectorMask](#ObjectDetectorMask) and [BBoxJoin](#BBoxJoin) nodes. \r\n  Download models from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1xaQYBA6ktxvAxm310HXweQ?pwd=auki) or [huggingface.co\u002FKijai\u002Fsam2-safetensors](https:\u002F\u002Fhuggingface.co\u002FKijai\u002Fsam2-safetensors\u002Ftree\u002Fmain) and copy to ```ComfyUI\u002Fmodels\u002Fsam2``` folder,\r\n  Download models from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1QpjajeTA37vEAU2OQnbDcQ?pwd=nqsk) or [GoogleDrive](https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F1nrsfq4S-yk9ewJgwrhXAoNVqIFLZ1at7?usp=sharing) and copy to ```ComfyUI\u002Fmodels\u002Fyolo-world``` folder.\r\n  This update introduces new dependencies, please reinstall the dependency package.\r\n* Commit [RandomGenerator](#RandomGenerator) node, Used to generate random numbers within a specified range, with outputs of int, float, and boolean, supporting batch generation of different random numbers by image batch.\r\n* Commit [EVF-SAMUltra](#EVFSAMUltra) node, it is implementation of [EVF-SAM](https:\u002F\u002Fgithub.com\u002Fhustvl\u002FEVF-SAM) in ComfyUI. Please download model files from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1EvaxgKcCxUpMbYKzLnEx9w?pwd=69bn) or [huggingface\u002FEVF-SAM2](https:\u002F\u002Fhuggingface.co\u002FYxZhang\u002Fevf-sam2\u002Ftree\u002Fmain), [huggingface\u002FEVF-SAM](https:\u002F\u002Fhuggingface.co\u002FYxZhang\u002Fevf-sam\u002Ftree\u002Fmain) to ```ComfyUI\u002Fmodels\u002FEVF-SAM``` folder(save the models in their respective subdirectories).\r\n  Due to the introduction of new dependencies package, after the plugin upgrade, please reinstall the dependency packages.\r\n* Commit [ImageTaggerSave](#ImageTaggerSave) and [ImageAutoCropV3](#ImageAutoCropV3) nodes. Used to implement the automatic trimming and marking workflow for the training set (the workflow ```image_tagger_save.json``` is located in the workflow directory).\r\n* Commit [CheckMaskV2](#CheckMaskV2) node, Added the ```simple``` method to detect masks more quickly.\r\n* Commit [ImageReel](#ImageReel) and [ImageReelComposite](#ImageReelComposite) nodes to composite multiple images on a canvas.\r\n* [NumberCalculatorV2](#NumberCalculatorV2) and [NumberCalculator](#NumberCalculator) add the  ```min``` and ```max``` method.\r\n* Optimize node loading speed.    \r\n* [Florence2Image2Prompt](#Florence2Image2Prompt) add support for ```thwri\u002FCogFlorence-2-Large-Freeze``` and ```thwri\u002FCogFlorence-2.1-Large``` models. Please download the model files from [BaiduNetdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1hzw9-QiU1vB8pMbBgofZIA?pwd=mfl3) or [huggingface\u002FCogFlorence-2-Large-Freeze](https:\u002F\u002Fhuggingface.co\u002Fthwri\u002FCogFlorence-2-Large-Freeze\u002Ftree\u002Fmain) and [huggingface\u002FCogFlorence-2.1-Large](https:\u002F\u002Fhuggingface.co\u002Fthwri\u002FCogFlorence-2.1-Large\u002Ftree\u002Fmain) , then copy it to ```ComfyUI\u002Fmodels\u002Fflorence2``` folder. \r\n* Merge branch from [ClownsharkBatwing](https:\u002F\u002Fgithub.com\u002FClownsharkBatwing) \"Use GPU for color blend mode\", the speed of some layer blends by more than ten times.\r\n* Commit [Florence2Ultra](#Florence2Ultra),  [Florence2Image2Prompt](#Florence2Image2Prompt) and [LoadFlorence2Model](#LoadFlorence2Model) nodes.\r\n* [TransparentBackgroundUltra](#TransparentBackgroundUltra) node add new model support. Please download the model file according to the instructions.\r\n* Commit [SegformerUltraV2](#SegformerUltraV2), [SegfromerFashionPipeline](#SegfromerFashionPipeline) and [SegformerClothesPipeline](#SegformerClothesPipeline) nodes, used for segmentation of clothing. please download the model file according to the instructions.\r\n* Commit ```install_requirements.bat``` and ```install_requirements_aki.bat```, One click solution to install dependency packages.\r\n* Commit [TransparentBackgroundUltra](#TransparentBackgroundUltra) node, it remove background based on transparent-background model.\r\n* Change the VitMatte model of the [Ultra](#Ultra) node to a local call. Please download [all files of vitmatte model](https:\u002F\u002Fhuggingface.co\u002Fhustvl\u002Fvitmatte-small-composition-1k\u002Ftree\u002Fmain) to the ```ComfyUI\u002Fmodels\u002Fvitmatte``` folder.\r\n* [GetColorToneV2](#GetColorToneV2) node add the ```mask``` method to the color selection option, which can accurately obtain the main color and average color within the mask.\r\n* [ImageScaleByAspectRatioV2](#ImageScaleByAspectRatioV2) node add the \"background_color\" option.\r\n* [LUT Apply](#LUT) Add the \"strength\" option.\r\n* Commit [AutoAdjustV2](#AutoAdjustV2) node, add optional mask input and support for multiple automatic color adjustment modes.\r\n* Due to the upcoming discontinuation of gemini-pro vision services, [PromptTagger](#PromptTagger) and [PromptEmbellish](#PromptEmbellish) have added the \"gemini-1.5-flash\" API to continue using it.\r\n* [Ultra](#Ultra) nodes added the option to run ```VitMatte``` on the CUDA device, resulting in a 5-fold increase in running speed.\r\n* Commit [QueueStop](#QueueStop) node, used to terminate the queue operation.\r\n* Optimize performance of the ```VitMate``` method for [Ultra](#Ultra) nodes when processing large-size image.\r\n* [CropByMaskV2](#CropByMaskV2) add option to round the cutting size by multiples.\r\n* Commit [CheckMask](#CheckMask) node, it detect whether the mask contains sufficient effective areas. Commit [HSVValue](#HSVValue) node, it convert color values to HSV values.\r\n* [BooleanOperatorV2](#BooleanOperatorV2), [NumberCalculatorV2](#NumberCalculatorV2), [Integer](#Integer), [Float](#Float), [Boolean](#Boolean) nodes add string output to output the value as a string for use with [SwitchCase](#SwitchCase).\r\n* Commit [SwitchCase](#SwitchCase) node, Switches the output based on the matching string. Can be used for any type of data switching.\r\n* Commit [String](#String) node, Used to output a string. It is the TextBox simplified node.\r\n* Commit [If](#If) node，Switches output based on Boolean conditional input. Can be used for any type of data switching.\r\n* Commit [StringCondition](#StringCondition) node, Determines whether the text contains or does not contain a substring.\r\n* Commit [NumberCalculatorV2](#NumberCalculatorV2) node，Add the nth root operation. Commit [BooleanOperatorV2](#BooleanOperatorV2) node, Increasing greater\u002Fless than, greater\u002Fless then or equal logical judgment. The two nodes can access numeric inputs and can input numeric values within the node. Note: Numeric input takes precedence. Values in nodes will not be valid when there is input.\r\n* Commit [SD3NegativeConditioning](#SD3NegativeConditioning) node, Encapsulate the four nodes of Negative Condition in SD3 into a separate node.\r\n* [ImageRemoveAlpha](#ImageRemoveAlpha) node add optional mask input.\r\n* Commit [HLFrequencyDetailRestore](#HLFrequencyDetailRestore) node, Using low-frequency filtering and high-frequency preserving to restore image details, the fusion is better.\r\n* Commit [AddGrain](#AddGrain) and [MaskGrain](#MaskGrain) nodes, Add noise to a picture or mask.\r\n* Commit [FilmV2](#FilmV2) node, The fastgrain method is added on the basis of the previous one, and the noise generation speed is 10 times faster.\r\n* Commit [ImageToMask](#ImageToMask) node, it can be converted image into mask. Supports converting any channel in LAB, RGBA, YUV, and HSV modes into masks, while providing color scale adjustment. Support mask optional input to obtain masks that only include valid parts.\r\n* The blackpoint and whitepoint options in some nodes have been changed to slider adjustment for a more intuitive display. Include [MaskEdgeUltraDetailV2](#MaskEdgeUltraDetailV2), [SegmentAnythingUltraV2](#SegmentAnythingUltraV2), [RmBgUltraV2](#RmBgUltraV2)，[PersonMaskUltraV2](#PersonMaskUltraV2)，[BiRefNetUltra](#BiRefNetUltra), [SegformerB2ClothesUltra](#SegformerB2ClothesUltra), [BlendIfMask](#BlendIfMask) and [Levels](#Levels).\r\n* [ImageScaleRestoreV2](#ImageScaleRestoreV2) and  [ImageScaleByAspectRatioV2](#ImageScaleByAspectRatioV2) nodes add the ```total_pixel``` method to scale images.\r\n* Commit [MediapipeFacialSegment](#MediapipeFacialSegment) node，Used to segment facial features, including left and right eyebrows, eyes, lips, and teeth.\r\n* Commit [BatchSelector](#BatchSelector) node，Used to retrieve specified images or masks from batch images or masks.\r\n* LayerUtility creates new subdirectories such as SystemIO, Data, and Prompt. Some nodes are classified into subdirectories.\r\n* Commit [MaskByColor](#MaskByColor) node, Generate a mask based on the selected color.\r\n* Commit [LoadPSD](#LoadPSD) node, It read the psd format, and output layer images. Note that this node requires the installation of the ```psd_tools``` dependency package, If error occurs during the installation of psd_tool, such as ```ModuleNotFoundError: No module named 'docopt'``` , please download [docopt's whl](https:\u002F\u002Fwww.piwheels.org\u002Fproject\u002Fdocopt\u002F) and manual install it. \r\n* Commit [SegformerB2ClothesUltra](#SegformerB2ClothesUltra) node, it used to segment character clothing. The model segmentation code is from[StartHua](https:\u002F\u002Fgithub.com\u002FStartHua\u002FComfyui_segformer_b2_clothes),  thanks to the original author.\r\n* [SaveImagePlus](#SaveImagePlus) node adds the output workflow to the json function, supports ```%date``` and ```%time``` to embeddint date or time to path and filename, and adds the preview switch.\r\n* Commit [SaveImagePlus](#SaveImagePlus) node，It can customize the directory where the picture is saved, add a timestamp to the file name, select the save format, set the image compression rate, set whether to save the workflow, and optionally add invisible watermarks to the picture.\r\n* Commit [AddBlindWaterMark](#AddBlindWaterMark), [ShowBlindWaterMark](#ShowBlindWaterMark) nodes, Add invisible watermark and decoded watermark to the picture. Commit [CreateQRCode](#CreateQRCode), [DecodeQRCode](#DecodeQRCode) nodes, It can generate two-dimensional code pictures and decode two-dimensional codes.\r\n* [ImageScaleRestoreV2](#ImageScaleRestoreV2), [ImageScaleByAspectRatioV2](#ImageScaleByAspectRatioV2), [ImageAutoCropV2](#ImageAutoCropV2) nodes add options for ```width``` and ```height```, which can specify width or height as fixed values.\r\n* Commit [PurgeVRAM](#PurgeVRAM) node, Clean up VRAM an RAM.\r\n* Commit [AutoAdjust](#AutoAdjust) node, it can automatically adjust image contrast and white balance.\r\n* Commit [RGBValue](#RGBValue) node to output the color value as a single decimal value of R, G, B. This idea is from [vxinhao](https:\u002F\u002Fgithub.com\u002Fvxinhao\u002Fcolor2rgb), Thanks.\r\n* Commit [seed](#seed) node to output the seed value. The [ImageMaskScaleAs](#ImageMaskScaleAs), [ImageScaleBySpectRatio](#ImageScaleBySpectRatio), [ImageScaleBySpectRatioV2](#ImageScaleBySpectRatioV2), [ImageScaleRestore](#ImageScaleRestore), [ImageScaleRestoreV2](#ImageScaleRestoreV2) nodes increase ```width```, ```height``` output.\r\n* Commit [Levels](#Levels) node, it can achieve the same color levels adjustment function as Photoshop.[Sharp&Soft](#Sharp) add the \"None\" option.\r\n* Commit [BlendIfMask](#BlendIfMask) node, This node cooperates with ImgaeBlendV2 or ImageBlendAdvanceV2 to achieve the same Blend If function as Photoshop.\r\n* Commit [ColorTemperature](#ColorTemperature) and [ColorBalance](#ColorBalance) nodes, used to adjust the color temperature and color balance of the picture.\r\n* Add new types of [Blend Mode V2](#BlendModeV2) between images. now supports up to 30 blend modes. The new blend mode is available for all V2 versions that support mixed mode nodes, including ImageBlend V2, ImageBlendAdvance V2, DropShadow V2, InnerShadow V2, OuterGlow V2, InnerGlow V2, Stroke V2, ColorOverlay V2, GradientOverlay V2.    \r\n  Part of the code for BlendMode V2 is from [Virtuoso Nodes for ComfyUI](https:\u002F\u002Fgithub.com\u002Fchrisfreilich\u002Fvirtuoso-nodes). Thanks to the original authors.\r\n* Commit [YoloV8Detect](#YoloV8Detect) node.\r\n* Commit [QWenImage2Prompt](#QWenImage2Prompt) node, this node is repackage of the [ComfyUI_VLM_nodes](https:\u002F\u002Fgithub.com\u002Fgokayfem\u002FComfyUI_VLM_nodes)'s ```UForm-Gen2 Qwen Node```,  thanks to the original author.\r\n* Commit [BooleanOperator](#BooleanOperator), [NumberCalculator](#NumberCalculator), [TextBox](#TextBox), [Integer](#Integer), [Float](#Float), [Boolean](#Boolean)nodes. These nodes can perform mathematical and logical operations.\r\n* Commit [ExtendCanvasV2](#ExtendCanvasV2) node，support color value input.\r\n* Commit [AutoBrightness](#AutoBrightness) node，it can automatically adjust the brightness of image.\r\n* [CreateGradientMask](#CreateGradientMask) node add ```center``` option.\r\n* Commit [GetColorToneV2](#GetColorToneV2) node, can select the main and average colors for the background or body. \r\n* Commit [ImageRewardFilter](#ImageRewardFilter) node, can filter out poor quality pictures.\r\n* [Ultra](#Ultra) nodes add ```VITMatte(local)``` method, You can choose this method to avoid accessing huggingface.co if you have already downloaded the model before.\r\n* Commit [HDR Effect](#HDR) node，it enhances the dynamic range and visual appeal of input images.  this node is repackage of [HDR Effects (SuperBeasts.AI)](https:\u002F\u002Fgithub.com\u002FSuperBeastsAI\u002FComfyUI-SuperBeasts).\r\n* Commit [CropBoxResolve](#CropBoxResolve) node.\r\n* Commit [BiRefNetUltra](#BiRefNetUltra) node, it using the BiRefNet model to remove background has better recognition ability and ultra-high edge details.\r\n* Commit [ImageAutoCropV2](#ImageAutoCropV2) node, it can choose not to remove the background, support mask input, and scale by long or short side size.\r\n* Commit [ImageHub](#ImageHub) node, supports up to 9 sets of Image and Mask switching output, and supports random output.\r\n* Commit [TextJoin](#TextJoin) node.\r\n* Commit [PromptEmbellish](#PromptEmbellish) node. it output polished prompt words, and support inputting images as references.\r\n* [Ultra](#Ultra) nodes have been fully upgraded to V2 version, with the addition of VITMatte edge processing method, which is suitable for handling semi transparent areas. Include [MaskEdgeUltraDetailV2](#MaskEdgeUltraDetailV2), [SegmentAnythingUltraV2](#SegmentAnythingUltraV2), [RmBgUltraV2](#RmBgUltraV2) and [PersonMaskUltraV2](#PersonMaskUltraV2) nodes.\r\n* Commit [Color of Shadow & Highlight](#Highlight) node, it can adjust the color of the dark and bright parts separately. Commit [Shadow & Highlight Mask](#Shadow) node, it can output mask for dark and bright areas.\r\n* Commit [CropByMaskV2](#CropByMaskV2) node, On the basis of the original node, it supports ```crop_box``` input, making it convenient to cut layers of the same size.\r\n* Commit [SimpleTextImage](#SimpleTextImage) node, it generate simple typesetting images and masks from text. This node references some of the functionalities and code of [ZHO-ZHO-ZHO\u002FComfyUI-Text_Image-Composite](https:\u002F\u002Fgithub.com\u002FZHO-ZHO-ZHO\u002FComfyUI-Text_Image-Composite).\r\n* Commit [PromptTagger](#PromptTagger) node，Inference the prompts based on the image. and it can replace key word for the prompt(need apply for Google Studio API key). Upgrade [ColorImageV2](#ColorImageV2) and [GradientImageV2](#GradientImageV2)，support user customize preset sizes and size_as input.\r\n* Commit [LaMa](#LaMa) node, it can erase objects from the image based on the mask. this node is repackage of [IOPaint](https:\u002F\u002Fwww.iopaint.com).\r\n* Commit [ImageRemoveAlpha](#ImageRemoveAlpha) and [ImageCombineAlpha](#ImageCombineAlpha) nodes, alpha channel of the image can be removed or merged.\r\n* Commit [ImageScaleRestoreV2](#ImageScaleRestoreV2) and [ImageScaleByAspectRatioV2](#ImageScaleByAspectRatioV2) nodes, supports scaling images to specified long or short edge sizes.\r\n* Commit [PersonMaskUltra](#PersonMaskUltra) node, Generate masks for portrait's face, hair, body skin, clothing, or accessories. the model code for this node comes from [a-person-mask-generator](https:\u002F\u002Fgithub.com\u002Fdjbielejeski\u002Fa-person-mask-generator).\r\n* Commit [LightLeak](#LightLeak) node, this filter simulate the light leakage effect of the film.\r\n* Commit [Film](#Film) node, this filter simulate the grain, dark edge, and blurred edge of the film, support input depth map to simulate defocus. it is reorganize and encapsulate of [digitaljohn\u002Fcomfyui-propost](https:\u002F\u002Fgithub.com\u002Fdigitaljohn\u002Fcomfyui-propost).\r\n* Commit [ImageAutoCrop](#ImageAutoCrop) node, which is designed to generate image materials for training models.\r\n* Commit [ImageScaleByAspectRatio](#ImageScaleByAspectRatio) node, it can be scaled image or mask according to frame ratio.\r\n* Fix the bug of color gradation in [LUT Apply](#LUT) node rendering, and this node now support for log color space. *Please load the dedicated log lut file for the log color space image.\r\n* Commit [CreateGradientMask](#CreateGradientMask) node. Commit [LayerImageTransform](#LayerImageTransform) and [LayerMaskTransform](#LayerMaskTransform) nodes.\r\n* Commit [MaskEdgeUltraDetail](#MaskEdgeUltraDetail) node, it process rough masks to ultra fine edges.Commit [Exposure](#Exposure) node.\r\n* Commit [Sharp & Soft](#Sharp) node, it can enhance or smooth out image details. Commit [MaskByDifferent](#MaskByDifferent) node, it compare two images and output a Mask. Commit [SegmentAnythingUltra](#SegmentAnythingUltra) node, Improve the quality of mask edges. *If SegmentAnything is not installed, you will need to manually download the model.\r\n* All nodes have fully supported batch images, providing convenience for video creation.\r\n  (The CropByMask node only supports cuts of the same size. if a batch mask_for_crop inputted, the data from the first sheet will be used.)\r\n* Commit [RemBgUltra](#RemBgUltra) and [PixelSpread](#PixelSpread) nodes significantly improved mask quality. *RemBgUltra requires manual model download.\r\n* Commit [TextImage](#TextImage) node, it generate text images and masks.\r\n* Add new types of [blend mode](#Blend) between images. now supports up to 19 blend modes. add **color_burn, color_dodge, linear_burn, linear_dodge, overlay, soft_light, hard_light, vivid_light, pin_light, linear_light** and **hard_mix**. \r\n  The newly added blend mode is applicable to all nodes that support blend mode.\r\n* Commit [ColorMap](#ColorMap) filter node to create a pseudo color heatmap effect.\r\n* Commit [WaterColor](#WaterColor) and [SkinBeauty](#SkinBeauty) nodes。These are image filters that generate watercolor and skin smoothness effects.\r\n* Commit [ImageShift](#ImageShift)  node to shift the image and output a displacement seam mask, making it convenient to create continuous textures.\r\n* Commit [ImageMaskScaleAs](#ImageMaskScaleAs) node to adjust the image or mask size based on the reference image.\r\n* Commit [ImageScaleRestore](#ImageScaleRestore) node to work with CropByMask for local upscale and repair works.\r\n* Commit [CropByMask](#CropByMask) and [RestoreCropBox](#RestoreCropBox) nodes. The combination of these two can partially crop and redraw the image before restoring it.\r\n* Commit [ColorAdapter](#ColorAdapter) node, that can automatically adjust the color tone of the image.\r\n* Commit [MaskStroke](#MaskStroke) node, it can generate mask contour strokes.\r\n* Add [LayerColor](#LayerColor) node group, used to adjust image color. it include [LUT Apply](#LUT), [Gamma](#Gamma), [Brightness & Contrast](#Brightness), [RGB](#RGB), [YUV](#YUV), [LAB](#LAB) adn [HSV](#HSV).\r\n* Commit [ImageChannelSplit](#ImageChannelSplit) and [ImageChannelMerge](#ImageChannelMerge) nodes.\r\n* Commit [MaskMotionBlur](#MaskMotionBlur) node.\r\n* Commit [SoftLight](#SoftLight) node.\r\n* Commit [ChannelShake](#ChannelShake) node, that is filter, can produce channel dislocation effect similar like Tiktok logo.\r\n* Commit [MaskGradient](#MaskGradient) node, can create a gradient in the mask.\r\n* Commit [GetColorTone](#GetColorTone) node, can obtain the main color or average color of the image. \r\n  Commit [MaskGrow](#MaskGrow) and [MaskEdgeShrink](#MaskEdgeShrink) nodes.\r\n* Commit [MaskBoxDetect](#MaskBoxDetect) node, which can automatically detect the position through the mask and output it to the composite node.\r\n  Commit [XY to Percent](#Percent) node to convert absolute coordinates to percent coordinates.\r\n  Commit [GaussianBlur](#GaussianBlur) node.\r\n  Commit [GetImageSize](#GetImageSize) node.\r\n* Commit [ExtendCanvas](#ExtendCanvas) node.\r\n* Commit [ImageBlendAdvance](#ImageBlendAdvance) node. This node allows for the synthesis of background images and layers of different sizes, providing a more free synthesis experience. \r\n  Commit [PrintInfo](#PrintInfo) node as a workflow debugging aid.\r\n* Commit [ColorImage](#ColorImage) and [GradientImage](#GradientImage) nodes, Used to generate solid and gradient color images.\r\n* Commit [GradientOverlay](#GradientOverlay) and [ColorOverlay](#ColorOverlay) nodes. \r\n  Add invalid mask input judgment and ignore it when invalid mask is input.\r\n* Commit [InnerGlow](#InnerGlow), [InnerShadow](#InnerShadow) and [MotionBlur](#MotionBlur) nodes.\r\n* Renaming all completed nodes, the nodes are divided into 4 groups：LayerStyle, LayerMask, LayerUtility, LayerFilter. workflows containing old version nodes need to be manually replaced with new version nodes.\r\n* [OuterGlow](#OuterGlow) node has undergone significant modifications by adding options for **_brightness_**, **_light_color_**, and **_glow_color_**.\r\n* Commit [MaskInvert](#MaskInvert) node.\r\n* Commit [ColorPick](#ColorPick) node.\r\n* Commit [Stroke](#Stroke) node.\r\n* Commit [MaskPreview](#MaskPreview) node.\r\n* Commit [ImageOpacity](#ImageOpacity) node.\r\n* The layer_mask is not a mandatory input now. it is allowed to use layers and masks with different shapes, but the size must be consistent.\r\n* Commit [ImageBlend](#ImageBlend) node.\r\n* Commit [OuterGlow](#OuterGlow) node.\r\n* Commit [DropShadow](#DropShadow) node.\r\n\r\n## Description\r\n\r\nNodes are divided into 5 groups according to their functions: LayerStyle, LayerColor, LayerMask, LayerUtility and LayerFilter.\r\n\r\n* [LayerStyle](#LayerStyle) nodes provides layer styles that mimic Adobe Photoshop.\r\n  ![image](image\u002Fmenu_layer_style.jpg)    \r\n* [LayerColor](#LayerColor) node group provides color adjustment functionality.\r\n  ![image](image\u002Fmenu_layer_color.jpg)    \r\n* [LayerMask](#LayerMask) nodes provides mask assistance tools.\r\n  ![image](image\u002Fmenu_layer_mask.jpg)    \r\n* [LayerUtility](#LayerUtility) nodes provides auxiliary nodes related to layer composit tools and workflows.\r\n  ![image](image\u002Fmenu_layer_utility.jpg)    \r\n* [LayerFilter](#LayerFilter) nodes provides image effect filters.\r\n  ![image](image\u002Fmenu_layer_filter.jpg)    \r\n\r\n# \u003Ca id=\"table1\">LayerStyle\u003C\u002Fa>\r\n\r\n![image](image\u002Flayerstyle_title.jpg)    \r\n![image](image\u002Flayerstyle_nodes.jpg)    \r\n\r\n### \u003Ca id=\"table1\">DropShadow\u003C\u002Fa>\r\n\r\nGenerate shadow\r\n![image](image\u002Fdrop_shadow_example.jpg)    \r\n\r\nNode options:\r\n![image](image\u002Fdrop_shadow_node.jpg)    \r\n\r\n* background_image\u003Csup>1\u003C\u002Fsup>: The background image.\r\n* layer_image\u003Csup>1\u003C\u002Fsup>: Layer image for composite.\r\n* layer_mask\u003Csup>1,2\u003C\u002Fsup>: Mask for layer_image, shadows are generated according to their shape.\r\n* invert_mask: Whether to reverse the mask.\r\n* blend_mode\u003Csup>3\u003C\u002Fsup>: Blending mode of shadows.\r\n* opacity: Opacity of shadow.\r\n* distance_x: Horizontal offset of shadow.\r\n* distance_y: Vertical offset of shadow.\r\n* grow: Shadow expansion amplitude.\r\n* blur: Shadow blur level.\r\n* shadow_color\u003Csup>4\u003C\u002Fsup>: Shadow color.\r\n* [note](#notes)\r\n\r\n### \u003Ca id=\"table1\">OuterGlow\u003C\u002Fa>\r\n\r\nGenerate outer glow\r\n![image](image\u002Fouter_glow_example.jpg)    \r\n\r\nNode options:\r\n![image](image\u002Fouter_glow_node.jpg)    \r\n\r\n* background_image\u003Csup>1\u003C\u002Fsup>: The background image.\r\n* layer_image\u003Csup>1\u003C\u002Fsup>: Layer image for composite.\r\n* layer_mask\u003Csup>1,2\u003C\u002Fsup>: Mask for layer_image, grow are generated according to their shape.\r\n* invert_mask: Whether to reverse the mask.\r\n* blend_mode\u003Csup>3\u003C\u002Fsup>: Blending mode of glow.\r\n* opacity: Opacity of glow.\r\n* brightness: Luminance of light.\r\n* glow_range: range of glow.\r\n* blur：blur of glow.\r\n* light_color\u003Csup>4\u003C\u002Fsup>: Center part color of glow.\r\n* glow_color\u003Csup>4\u003C\u002Fsup>: Edge part color of glow.\r\n* [note](#notes)\r\n\r\n### \u003Ca id=\"table1\">InnerShadow\u003C\u002Fa>\r\n\r\nGenerate inner shadow\r\n![image](image\u002Finner_shadow_example.jpg)    \r\n\r\nNode options:\r\n![image](image\u002Finner_shadow_node.jpg)    \r\n\r\n* background_image\u003Csup>1\u003C\u002Fsup>: The background image.\r\n* layer_image\u003Csup>1\u003C\u002Fsup>: Layer image for composite.\r\n* layer_mask\u003Csup>1,2\u003C\u002Fsup>: Mask for layer_image, shadows are generated according to their shape.\r\n* invert_mask: Whether to reverse the mask.\r\n* blend_mode\u003Csup>3\u003C\u002Fsup>: Blending mode of shadows.\r\n* opacity: Opacity of shadow.\r\n* distance_x: Horizontal offset of shadow.\r\n* distance_y: Vertical offset of shadow.\r\n* grow: Shadow expansion amplitude.\r\n* blur: Shadow blur level.\r\n* shadow_color\u003Csup>4\u003C\u002Fsup>: Shadow color.\r\n* [note](#notes)\r\n\r\n### \u003Ca id=\"table1\">InnerGlow\u003C\u002Fa>\r\n\r\nGenerate inner glow\r\n![image](image\u002Finner_glow_example.jpg)    \r\n\r\nNode options:  \r\n![image](image\u002Finner_glow_node.jpg)    \r\n\r\n* background_image\u003Csup>1\u003C\u002Fsup>: The background image.\r\n* layer_image\u003Csup>1\u003C\u002Fsup>: Layer image for composite.\r\n* layer_mask\u003Csup>1,2\u003C\u002Fsup>: Mask for layer_image, grow are generated according to their shape.\r\n* invert_mask: Whether to reverse the mask.\r\n* blend_mode\u003Csup>3\u003C\u002Fsup>: Blending mode of glow.\r\n* opacity: Opacity of glow.\r\n* brightness: Luminance of light.\r\n* glow_range: range of glow.\r\n* blur：blur of glow.\r\n* light_color\u003Csup>4\u003C\u002Fsup>: Center part color of glow.\r\n* glow_color\u003Csup>4\u003C\u002Fsup>: Edge part color of glow.\r\n* [note](#notes)\r\n\r\n### \u003Ca id=\"table1\">Stroke\u003C\u002Fa>\r\n\r\nGenerate a stroke of layer。\r\n![image](image\u002Fstroke_example.jpg)    \r\n\r\nNode options:   \r\n![image](image\u002Fstroke_node.jpg)    \r\n\r\n* background_image\u003Csup>1\u003C\u002Fsup>: The background image.\r\n* layer_image\u003Csup>1\u003C\u002Fsup>: Layer image for composite.\r\n* layer_mask\u003Csup>1,2\u003C\u002Fsup>: Mask for layer_image, stroke are generated according to their shape.\r\n* invert_mask: Whether to reverse the mask.\r\n* blend_mode\u003Csup>3\u003C\u002Fsup>: Blending mode of stroke.\r\n* opacity: Opacity of stroke.\r\n* stroke_grow: Stroke expansion\u002Fcontraction amplitude, positive values indicate expansion and negative values indicate contraction.\r\n* stroke_width: Stroke width.\r\n* blur: Blur of stroke.\r\n* stroke_color\u003Csup>4\u003C\u002Fsup>: Stroke color, described in hexadecimal RGB format.\r\n* [note](#notes)\r\n\r\n### \u003Ca id=\"table1\">GradientOverlay\u003C\u002Fa>\r\n\r\nGenerate gradient overlay\r\n![image](image\u002Fgradient_overlay_example.jpg)    \r\n\r\nNode options:   \r\n\r\n* background_image\u003Csup>1\u003C\u002Fsup>: The background image.\r\n* layer_image\u003Csup>1\u003C\u002Fsup>: Layer image for composite.\r\n* layer_mask\u003Csup>1,2\u003C\u002Fsup>: Mask for layer_image.\r\n* invert_mask: Whether to reverse the mask.\r\n* blend_mode\u003Csup>3\u003C\u002Fsup>: Blending mode of gradient.\r\n* opacity: Opacity of stroke.\r\n* start_color: Color at the beginning of the gradient.\r\n* start_alpha: Transparency at the beginning of the gradient.\r\n* end_color: Color at the end of the gradient.\r\n* end_alpha: Transparency at the end of the gradient.\r\n* angle: Gradient rotation angle.\r\n* [note](#notes)\r\n\r\n### \u003Ca id=\"table1\">ColorOverlay\u003C\u002Fa>\r\n\r\nGenerate color overlay\r\n![image](image\u002Fcolor_overlay_example.jpg)    \r\n\r\nNode options:\r\n![image](image\u002Fcolor_overlay_node.jpg)    \r\n\r\n* background_image\u003Csup>1\u003C\u002Fsup>: The background image.\r\n* layer_image\u003Csup>1\u003C\u002Fsup>: Layer image for composite.\r\n* layer_mask\u003Csup>1,2\u003C\u002Fsup>: Mask for layer_image.\r\n* invert_mask: Whether to reverse the mask.\r\n* blend_mode\u003Csup>3\u003C\u002Fsup>: Blending mode of color.\r\n* opacity: Opacity of stroke.\r\n* color: Color of overlay.\r\n* [note](#notes)\r\n\r\n# \u003Ca id=\"table1\">LayerColor\u003C\u002Fa>\r\n\r\n![image](image\u002Flayercolor_title.jpg)    \r\n![image](image\u002Flayercolor_nodes.jpg)    \r\n\r\n### \u003Ca id=\"table1\">LUT\u003C\u002Fa> Apply\r\n\r\nApply LUT to the image. only supports .cube format.\r\n![image](image\u002Flut_apply_example.jpg)    \r\n\r\nNode options:  \r\n![image](image\u002Flut_apply_node.jpg)    \r\n\r\n* LUT\u003Csup>*\u003C\u002Fsup>: Here is a list of available. cube files in the LUT folder, and the selected LUT files will be applied to the image.\r\n* color_space: For regular image, please select linear, for image in the log color space, please select log.\r\n* strength: Range 0~100, LUT application strength. The larger the value, the greater the difference from the original image, and the smaller the value, the closer it is to the original image.\r\n\r\n\u003Csup>*\u003C\u002Fsup>\u003Cfont size=\"3\">LUT folder is defined in ```resource_dir.ini```, this file is located in the root directory of the plug-in, and the default name is ```resource_dir.ini.example```. to use this file for the first time, you need to change the file suffix to ```.ini```.\r\nOpen the text editing software and find the line starting with \"LUT_dir=\", after \"=\", enter the custom folder path name.\r\nsupport defining multiple folders in ```resource-dir.ini```, separated by commas, semicolons, or spaces. \r\nall .cube files in this folder will be collected and displayed in the node list during ComfyUI initialization.\r\nIf the folder set in ini is invalid, the LUT folder that comes with the plugin will be enabled.\u003C\u002Ffont>\r\n\r\n### \u003Ca id=\"table1\">AutoAdjust\u003C\u002Fa>\r\n\r\nAutomatically adjust the brightness, contrast, and white balance of the image. Provide some manual adjustment options to compensate for the shortcomings of automatic adjustment.\r\n![image](image\u002Fauto_adjust_example.jpg)    \r\n\r\nNode Options:  \r\n![image](image\u002Fauto_adjust_node.jpg)    \r\n\r\n* strength: Strength of adjust. The larger the value, the greater the difference from the original image.\r\n* brightness: Manual adjustment of brightness.\r\n* contrast: Manual adjustment of contrast.\r\n* saturation: Manual adjustment of saturation.\r\n* red: Manual adjustment of the red channel.\r\n* green: Manual adjustment of the green channel.\r\n* blue: Manual adjustment of the blue channel.\r\n\r\n### \u003Ca id=\"table1\">AutoAdjustV2\u003C\u002Fa>\r\n\r\nOn the basis of AutoAdjust, add mask input and only calculate the content inside the mask for automatic color adjustment. Add multiple automatic adjustment modes.\r\n![image](image\u002Fauto_adjust_v2_example.jpg)    \r\n\r\nThe following changes have been made based on AutoAdjust: \r\n![image](image\u002Fauto_adjust_v2_node.jpg)    \r\n\r\n* mask: Optional mask input.\r\n* mode: Automatic adjustment mode. \"RGB\" automatically adjusts according to the three channels of RGB, \"lum + sat\"automatically adjusts according to luminance and saturation, \"luminance\" automatically adjusts according to luminance, \"saturation\" automatically adjusts according to saturation, and \"mono\" automatically adjusts according to grayscale and outputs monochrome.\r\n\r\n### \u003Ca id=\"table1\">AutoBrightness\u003C\u002Fa>\r\n\r\nAutomatically adjust too dark or too bright image to moderate brightness, and support mask input. When  mask input, only the content of the mask part is used as the data source of the automatic brightness. The output is still the whole adjusted image.\r\n![image](image\u002Fauto_brightness_example.jpg)    \r\n\r\nNode options:  \r\n![image](image\u002Fauto_brightness_node.jpg)    \r\n\r\n* strength: Automatically adjust the intensity of the brightness. The larger the value, the more biased towards the middle value, the greater the difference from the original picture.\r\n* saturation: Color saturation. Changes in brightness usually result in changes in color saturation, where appropriate compensation can be adjusted.\r\n\r\n### \u003Ca id=\"table1\">ColorAdapter\u003C\u002Fa>\r\n\r\nAuto adjust the color tone of the image to resemble the reference image.\r\n![image](image\u002Fcolor_adapter_example.jpg)    \r\n\r\nNode options:  \r\n![image](image\u002Fcolor_adapter_node.jpg)    \r\n\r\n* opacity: The opacity of an image after adjusting its color tone.\r\n\r\n### \u003Ca id=\"table1\">Exposure\u003C\u002Fa>\r\n\r\nChange the exposure of the image.\r\n![image](image\u002Fexposure_example.jpg)    \r\n\r\n### Color of Shadow & \u003Ca id=\"table1\">Highlight\u003C\u002Fa>\r\n\r\nAdjust the color of the dark and bright parts of the image.\r\n![image](image\u002Fcolor_of_shadow_and_highlight_example.jpg)    \r\n\r\nNode options:  \r\n![image](image\u002Fcolor_of_shadow_and_highlight_node.jpg)    \r\n\r\n* image: The input image.\r\n* mask: Optional input. if there is input, only the colors within the mask range will be adjusted.\r\n* shadow_brightness: The brightness of the dark area.\r\n* shadow_saturation: The color saturation in the dark area.\r\n* shadow_hue: The color hue in the dark area.\r\n* shadow_level_offset: The offset of values in the dark area, where larger values bring more areas closer to the bright into the dark area.\r\n* shadow_range: The transitional range of the dark area.\r\n* highlight_brightness:  The brightness of the highlight area.\r\n* highlight_saturation: The color saturation in the highlight area.\r\n* highlight_hue: The color hue in the highlight area.\r\n* highlight_level_offset: The offset of values in the highlight area, where larger values bring more areas closer to the dark into the highlight area.\r\n* highlight_range: The transitional range of the highlight area.\r\n\r\nNode option:  \r\n\r\n* exposure: Exposure value. Higher values indicate brighter image.\r\n\r\n### Color of Shadow \u003Ca id=\"table1\">HighlightV2\u003C\u002Fa>\r\n\r\nA replica of the ```Color of Shadow & Highlight``` node, with the \"&\" character removed from the node name to avoid ComfyUI workflow parsing errors.\r\n\r\n### \u003Ca id=\"table1\">ColorTemperature\u003C\u002Fa>\r\n\r\n![image](image\u002Fcolor_temperature_example.jpg)    \r\nChange the color temperature of the image.\r\n\r\nNode Options:  \r\n![image](image\u002Fcolor_temperature_node.jpg)    \r\n\r\n* temperature: Color temperature value. Range between-100 and 100. The higher the value, the higher the color temperature (bluer); The lower the color temperature, the lower the color temperature (yellowish).\r\n\r\n### \u003Ca id=\"table1\">Levels\u003C\u002Fa>\r\n\r\n![image](image\u002Flevels_example.jpg)    \r\nChange the levels of image.\r\n\r\nNode Options:  \r\n![image](image\u002Flevels_node.jpg)    \r\n\r\n* channel: Select the channel you want to adjust. Available in RGB, red, green, blue.\r\n* black_point\u003Csup>*\u003C\u002Fsup>: Input black point value. Value range 0-255, default 0.\r\n* white_point\u003Csup>*\u003C\u002Fsup>: Input white point value. Value range 0-255, default 255.\r\n* gray_point: Input grey point values. Value range 0.01-9.99, default 1.\r\n* output_black_point\u003Csup>*\u003C\u002Fsup>: Output black point value. Value range 0-255, default 0.\r\n* output_white_point\u003Csup>*\u003C\u002Fsup>: Output white point value. Value range 0-255, default 255.\r\n\r\n\u003Csup>*\u003C\u002Fsup>\u003Cfont size=\"3\">If the black_point or output_black_point value is greater than white_point or output_white_point, the two values are swapped, with the larger value used as white_point and the smaller value used as black_point.\u003C\u002Ffont>\r\n\r\n### \u003Ca id=\"table1\">ColorBalance\u003C\u002Fa>\r\n\r\n![image](image\u002Fcolor_balance_example.jpg)    \r\nChange the color balance of an image.\r\n\r\nNode Options:  \r\n![image](image\u002Fcolor_balance_node.jpg)    \r\n\r\n* cyan_red: Cyan-Red balance. negative values are leaning cyan, positive values are leaning red.\r\n* magenta_green: Megenta-Green balance. negative values are leaning megenta, positive values are leaning green.\r\n* yellow_blue: Yellow-Blue balance. negative values are leaning yellow, positive values are leaning blue.\r\n\r\n### \u003Ca id=\"table1\">Gamma\u003C\u002Fa>\r\n\r\nChange the gamma value of the image.\r\n\r\nNode options:  \r\n![image](image\u002Fgamma_node.jpg)    \r\n\r\n* gamma: Value of the Gamma.\r\n\r\n### \u003Ca id=\"table1\">Brightness\u003C\u002Fa> & Contrast\r\n\r\nChange the brightness, contrast, and saturation of the image.\r\n\r\nNode options:  \r\n![image](image\u002Fbrightness_&_contrast_node.jpg)    \r\n\r\n* brightness: Value of brightness.\r\n* contrast: Value of contrast.\r\n* saturation: Value of saturation.\r\n\r\n### \u003Ca id=\"table1\">BrightnessContrastV2\u003C\u002Fa>\r\n\r\nA replica of the ```Brightness & Contrast``` node, with the \"&\" character removed from the node name to avoid ComfyUI workflow parsing errors.\r\n\r\n### \u003Ca id=\"table1\">RGB\u003C\u002Fa>\r\n\r\nAdjust the RGB channels of the image.\r\n\r\nNode options:  \r\n![image](image\u002FRGB_node.jpg)    \r\n\r\n* R: R channel.\r\n* G: G channel.\r\n* B: B channel.\r\n\r\n### \u003Ca id=\"table1\">YUV\u003C\u002Fa>\r\n\r\nAdjust the YUV channels of the image.\r\n\r\nNode options:  \r\n![image](image\u002FYUV_node.jpg)    \r\n\r\n* Y: Y channel.\r\n* U: U channel.\r\n* V: V channel.\r\n\r\n### \u003Ca id=\"table1\">LAB\u003C\u002Fa>\r\n\r\nAdjust the LAB channels of the image.\r\n\r\nNode options:  \r\n![image](image\u002FLAB_node.jpg)    \r\n\r\n* L: L channel.\r\n* A: A channel.\r\n* B: B channel.\r\n\r\n### \u003Ca id=\"table1\">HSV\u003C\u002Fa>\r\n\r\nAdjust the HSV channels of the image.\r\n\r\nNode options:  \r\n![image](image\u002FHSV_node.jpg)    \r\n\r\n* H: H channel.\r\n* S: S channel.\r\n* V: V channel.\r\n\r\n### \u003Ca id=\"table1\">ColorNegative\u003C\u002Fa>\r\nChange color to negative of image, you can choose RGB, Mono, or each channel of RGB to negative.\r\n![image](image\u002Fcolor_negative_example.jpg)    \r\n\r\nNode Options:  \r\n![image](image\u002Fcolor_negative_node.jpg)    \r\n* negative_channel: Select the channel for inversion.\r\n\r\n# \u003Ca id=\"table1\">LayerUtility\u003C\u002Fa>\r\n\r\n![image](image\u002Flayerutility_nodes.jpg)    \r\n\r\n### \u003Ca id=\"table1\">ImageBlendAdvance\u003C\u002Fa>\r\n\r\nUsed for compositing layers, allowing for compositing layer images of different sizes on the background image, and setting positions and transformations. multiple mixing modes are available for selection, and transparency can be set.\r\n\r\nThe node provide layer transformation_methods and anti_aliasing options. helps improve the quality of synthesized images.\r\n\r\nThe node provides mask output that can be used for subsequent workflows.\r\n![image](image\u002Fimage_blend_advance_example.jpg)    \r\n\r\nNode options:   \r\n![image](image\u002Fimage_blend_advance_node.jpg)    \r\n\r\n* background_image: The background image.\r\n* layer_image\u003Csup>5\u003C\u002Fsup>: Layer image for composite.\r\n* layer_mask\u003Csup>2,5\u003C\u002Fsup>: Mask for layer_image.\r\n* invert_mask: Whether to reverse the mask.\r\n* blend_mode\u003Csup>3\u003C\u002Fsup>: Blending mode.\r\n* opacity: Opacity of blend.\r\n* x_percent: Horizontal position of the layer on the background image, expressed as a percentage, with 0 on the far left and 100 on the far right. It can be less than 0 or more than 100, indicating that some of the layer's content is outside the screen.\r\n* y_percent: Vertical position of the layer on the background image, expressed as a percentage, with 0 on the top and 100 on the bottom. For example, setting it to 50 indicates vertical center, 20 indicates upper center, and 80 indicates lower center.\r\n* mirror: Mirror flipping. Provide two flipping modes, horizontal flipping and vertical flipping.\r\n* scale: Layer magnification, 1.0 represents the original size.\r\n* aspect_ratio: Layer aspect ratio. 1.0 is the original ratio, a value greater than this indicates elongation, and a value less than this indicates flattening.\r\n* rotate: Layer rotation degree.\r\n* Sampling methods for layer enlargement and rotation, including lanczos, bicubic, hamming, bilinear, box and nearest. Different sampling methods can affect the image quality and processing time of the synthesized image.\r\n* anti_aliasing: Anti aliasing, ranging from 0 to 16, the larger the value, the less obvious the aliasing. An excessively high value will significantly reduce the processing speed of the node.\r\n* [note](#notes)\r\n\r\n### \u003Ca id=\"table1\">ImageCompositeHandleMask\u003C\u002Fa>\r\nUsed to generate local feathering masks and corresponding cropping data. The node provides mask output that can be used for subsequent workflows.\r\n![image](image\u002Fimage_composite_handle_mask_example.jpg)    \r\n\r\nNode Options:   \r\n![image](image\u002Fimage_composite_handle_mask_node.jpg)    \r\n* background_image: The background image.\r\n* layer_image: Layer image for composite.\r\n* layer_mask: Mask for layer_image.\r\n* invert_mask: Whether to reverse the mask.\r\n* opacity: Opacity of image composite.\r\n* x_percent: Horizontal position of the layer on the background image, expressed as a percentage, with 0 on the far left and 100 on the far right. It can be less than 0 or more than 100, indicating that some of the layer's content is outside the screen.\r\n* y_percent: Vertical position of the layer on the background image, expressed as a percentage, with 0 on the top and 100 on the bottom. For example, setting it to 50 indicates vertical center, 20 indicates upper center, and 80 indicates lower center.\r\n* scale: Layer magnification, 1.0 represents the original size.\r\n* mirror: Mirror flipping. Provide two flipping modes, horizontal flipping and vertical flipping.\r\n* rotate: Layer rotation degree.\r\n* anti_aliasing: Anti aliasing, ranging from 0 to 8, the larger the value, the less obvious the aliasing. An excessively high value will significantly reduce the processing speed of the node.\r\n* handle_detect: There are two methods for detecting the position of feathering masks: mask_area and layer-bbox. ```mask_area``` detects the effective area of the mask for the layer object, while ```layer-bbox``` detects the outer BBox of the layer object.\r\n* top_handle: The amplitude of feathering at the top side of the mask. The value is the percentage of the average edge length of the mask.\r\n* bottom_handle: The amplitude of feathering at the bottom side of the mask. The value is the percentage of the average edge length of the mask.\r\n* left_handle: The amplitude of feathering at the left side of the mask. The value is the percentage of the average edge length of the mask.\r\n* right_handle: The amplitude of feathering at the right side of the mask. The value is the percentage of the average edge length of the mask.\r\n* handle_mask_outradius: Feather mask fillet radius.\r\n* top_reserve: Cut the top to preserve size.\r\n* bottom_reserve: Cut the bottom to preserve size.\r\n* left_reserve: Cut the left to preserve size.\r\n* right_reserve: Cut the right to preserve size.\r\n* round_to_multiple: Round the trimming edge length multiple. For example, setting it to 8 will force the width and height to be multiples of 8.\r\n\r\nOutputs:\r\n* image: The composited image.\r\n* mask: The composited mask.\r\n* layer_bbox_mask: Composite object BBox mask.\r\n* handle_mask: The mask after feather process.\r\n* handle_crop_bbox: Feather mask cropping data.\r\n* handle_overrange: Does the feathering mask exceed the range of the background image. The output format is a string including \"top\", \"bottom\", \"left\", and \"right\".\r\n\r\n### \u003Ca id=\"table1\">CropByMask\u003C\u002Fa>\r\n\r\nCrop the image according to the mask range, and set the size of the surrounding borders to be retained.\r\nThis node can be used in conjunction with the [RestoreCropBox](#RestoreCropBox) and [ImageScaleRestore](#ImageScaleRestore) nodes to crop and modify upscale parts of image, and then paste them ba","ComfyUI LayerStyle 是一组用于ComfyUI的节点，能够实现图层和蒙版的合成，达到类似Photoshop的功能。该项目通过Python语言开发，提供了包括图层蒙版、图像裁剪、颜色提取等在内的多种工具，旨在将Photoshop的基本功能迁移到ComfyUI中，从而集中工作流程并减少软件切换的频率。适用于需要在图像处理过程中频繁使用图层和蒙版操作的设计者或开发者，特别是在追求高效且集成化的工作环境中。",2,"2026-06-11 03:41:30","high_star"]