ComfyUI Extension: ComfyUI 1hewNodes
This is a custom node collection for ComfyUI that provides some utility nodes.
Custom Nodes (0)
README
ComfyUI-1hewNodes
This is a custom node collection for ComfyUI that provides a series of practical image processing, mask operations, and utility nodes.
๐ฆ Installation
Clone the repository into ComfyUI's custom_nodes directory:
git clone https://github.com/1hew/ComfyUI-1hewNodes
๐ Changelog
v1.2.44
- feat(util): Added
Workflow Namenode
v1.2.43
- feat(logic): Added
Video Cut Groupnode
v1.2.42
- feat(logic): Added
Image Batch Extractnode for extracting specific images from batches with multiple modes including custom indices, step intervals, and uniform distribution
v1.2.40
- feat(text): Added
IntWannode for generating 4n+1 arithmetic progression sequences with configurable step control and range validation - refactor(logic): Enhanced
Image Batch SplitandMask Batch Splitnodes with improved boundary condition handling and comprehensive error recovery
- feat(logic): Added
Image Batch Groupnode for intelligent image batch splitting with overlap support and flexible padding strategies
โ </details>
<details> <summary><b>v1.2.38</b></summary>- refactor(image): Enhanced
ImageResizeUniversalnode with comprehensive mask processing logic
โ </details>
<details> <summary><b>v1.2.37</b></summary>- feat(image): Enhanced
Image Solidnode with advanced color parameter - feat(image): Added the
ImageGridSplitnode for splitting images into grid layouts with flexible output options
โ </details>
<details> <summary><b>v1.2.36</b></summary>- feat(conversion): Enhanced
URL to Videonode
โ </details>
<details> <summary><b>v1.2.35</b></summary>- feat(image): Added
Image Resize Qwen Imagenode for Qwen vision model optimized image resizing with 7 preset resolutions and automatic aspect ratio selection
โ </details>
<details> <summary><b>v1.2.32</b></summary>- feat(image): Added
Image Solid Flux Kontextnode for generating solid color images with Flux Kontext dimension presets - feat(image): Added
Image Solid Qwen Imagenode for generating solid color images with QwenImage dimension presets
โ </details>
<details> <summary><b>v1.2.31</b></summary>- fix: Fixed various bugs and improved stability
โ </details>
<details> <summary><b>v1.2.28</b></summary>- feat(mask): Added
Mask Paste by BBox Masknode for simplified mask pasting with automatic base mask creation and bounding box detection - feat(image_tile): Added
Image Tile Split Presetnode with predefined resolution presets and intelligent tile size selection - feat(image): Added
Image Rotate with Masknode for advanced image rotation with mask support and multiple fill modes - feat(text): Enhanced
Text Load Localnode withuser_promptparameter for combining JSON content with additional user prompts
โ </details>
<details> <summary><b>v1.2.26</b></summary>- feat(image_crop): Enhanced
Image Crop with BBox Masknode with precise dimension control, addedcrop_to_sideandcrop_to_lengthparameters
โ </details>
<details> <summary><b>v1.2.25</b></summary>- feat(image_crop): Added
apply_paste_maskparameter toImage Paste by BBox Masknode for controlling smart scaling behavior
โ </details>
<details> <summary><b>v1.2.24</b></summary>- feat(image_crop): Added
opacityparameter toImage Paste by BBox Masknode for controlling paste image transparency - feat(image): Enhanced
Image Stroke by Masknode with batch processing support for handling multiple images and masks
โ </details>
<details> <summary><b>v1.2.23</b></summary>- fix(image): Enhanced
Image Stroke by Masknode color parsing logic, supporting RGB string formats and improved default fallback to white color - fix(image): Enhanced
Image Paste by BBox Masknode rotation parameter
โ </details>
<details> <summary><b>v1.2.21</b></summary>- feat(text): Added
Text Filter Commentnode for filtering single-line comments (starting with #) and multi-line comments (wrapped in triple quotes), preserving non-comment blank lines - feat(text): Added
Text Join by Text Listnode for merging any type of list into a string with support for prefix, suffix, and custom separators - refactor(text): Refactored
Text Formatnode toText Prefix Suffix, optimizing wildcard input processing and formatting functionality
โ </details>
<details> <summary><b>v1.2.18</b></summary>- feat(sample): Added
Step Splitnode for high-low frequency sampling step separation with support for percentage and integer input modes
โ </details>
<details> <summary><b>v1.2.17</b></summary>- feat(image_crop): Optimized
Image Crop with BBox Masknode
โ </details>
<details> <summary><b>v1.2.15</b></summary>- feat(text): Added
Text Join Multinode for concatenating multiple text inputs with dynamic variable referencing - feat(image_crop): Added
Image Edge Crop Padnode with smart edge cropping and padding capabilities, featuring mask output functionality - feat(image_blend): Enhanced
Image Luma Mattenode with feathering and alpha output features, supporting multiple color formats and edge processing
โ </details>
<details> <summary><b>v1.2.13</b></summary>- feat(text): Added
Text Load Localnode for loading JSON format prompt files from prompt directory with bilingual Chinese and English output
โ </details>
<details> <summary><b>v1.2.12</b></summary>- feat(text): Added
Text Formatnode for flexible text formatting with wildcard input support
โ </details>
<details> <summary><b>v1.2.9</b></summary>- feat(image_crop): Refactored
Image Crop with BBox Masknode
โ </details>
<details> <summary><b>v1.2.8</b></summary>- feat(image): Added
Image Resize Flux Kontextnode with support for automatic and manual size selection for images and masks - feat(image): Enhanced
Image Edit Stitchnode with improved stitching algorithms and parameter handling
โ </details>
<details> <summary><b>v1.2.7</b></summary>- feat(text): Added
List Custom Seednode for creating unique random seed lists with control after generate functionality
โ </details>
<details> <summary><b>v1.2.6</b></summary>- feat(image_hlfreq): Added high-low frequency separation node group, including
Image HLFreq Separate,Image HLFreq Combine, andImage HLFreq Transformnodes with support for RGB, HSV, and IGBI frequency separation methods
โ </details>
<details> <summary><b>v1.2.5</b></summary>- feat(mask): Added the
Mask Fill Holenode, which fills holes in enclosed areas of masks with support for batch processing.
โ </details>
<details> <summary><b>v1.2.3</b></summary>- fix(image_blend): Fixed the issue of inconsistency between devices for the
Image Blend Modes by Alphanode.
โ </details>
<details> <summary><b>v1.2.2</b></summary>- feat(image): Added the
Image BBox Overlay by Masknode, which overlays the image bounding box based on a mask.
โ </details>
<details> <summary><b>v1.2.1</b></summary>- refactor(image/crop): Renamed node classes and updated related documentation
- feat(image_crop): Enhanced the functionality and output options of the
ImageCropByMaskAlphanode
โ </details>
<details> <summary><b>v1.2.0</b></summary>- feat: Added
conversion, and restructured image mixing and masking processing
โ </details>
<details> <summary><b>v1.1.6</b></summary>- feat(ImageEditStitch): Add a โspacingโ parameter to control the distance between stitched images
โ </details>
<details> <summary><b>v1.1.5</b></summary>- feat: Added text processing and logic nodes, optimized existing node functions
- refactor(util): Refactored utility nodes, renamed nodes
RangeMappingandPathBuild - feat(logic): Added
ImageListAppendnode for image list merging - feat(text): Added
TextCustomListandTextCustomExtracttext processing nodes - style: Cleaned up node parameter labels to maintain simplicity and consistency
โ </details>
<details> <summary><b>v1.1.2</b></summary>- feat(image_tile): Improved the
Image Tile Mergealgorithm, using weight masks and cosine gradients to achieve perfect seamless stitching
โ </details>
<details> <summary><b>v1.1.1</b></summary>- feat (image_crop): Added intelligent batch processing for
Image BBox Paste
โ </details>
<details> <summary><b>v1.1.0</b></summary>- build: Add new tile nodes
- feat: Update node functionality
- docs: Add bilingual documentation, improve node descriptions
โ </details>
<details> <summary><b>v1.0.5</b></summary>- Add Path Select
โ </details>
<details> <summary><b>v1.0.4</b></summary>- Fix Image Cropped Paste error, add batch processing feature.
โ </details>
๐ Node List
๐ผ๏ธ Image Processing Nodes
| Node Name | Description | |-----------|--------------| | Image Get Size | Image dimension extractor that extracts width and height information from input images with automatic batch processing support | | Image Solid FluxKontext | Generate solid color images based on Flux Kontext dimension presets with flexible color input format support | | Image Solid QwenImage | Generate solid color images based on QwenImage dimension presets with flexible color input format support | | Image Solid | Generate solid color images with enhanced color parameter supporting multiple input formats and multiple size presets | | Image Resize FluxKontext | Resize images to FluxKontext dimensions with support for automatic and manual size selection for images and masks | | Image Resize Qwen Image | Image resizing optimized for Qwen vision models, providing 7 preset resolutions and automatic aspect ratio selection | | Image Resize Universal | Universal image resizing with multiple algorithms and constraints | | Image Rotate with Mask | Advanced image rotation with mask integration, multiple fill modes, and mask center rotation options | | Image Edit Stitch | Image stitching and merging with multiple stitching modes | | Image Add Label | Add text labels to images | | Image Plot | Image plotting and visualization tools | | Image Stroke by Mask | Apply stroke effects to mask regions with customizable width and color | | Image BBox Overlay by Mask | Mask-based image bounding box overlay with independent and merge modes |
๐จ Image Blending Nodes
| Node Name | Description | |-----------|-------------| | Image Luma Matte | Luminance-based image mask compositing with feathering, alpha output, and multiple color format support | | Image Blend Modes by Alpha | Alpha-based image blending with multiple Photoshop-style blend modes | | Image Blend Modes by CSS | CSS standard blend modes based on Pilgram library |
โ๏ธ Image Cropping Nodes
| Node Name | Description | |-----------|-------------| | Image Crop Square | Square cropping with mask guidance and scaling support | | Image Crop with BBox Mask | Smart bounding box cropping with precise aspect ratio control and scale strength adjustment | | Image Crop by Mask Alpha | Batch mask-based cropping with RGB/RGBA dual output modes and smart channel processing | | Image Paste by BBox Mask | Paste cropped images back with multiple blend modes | | Image Edge Crop Pad | Smart edge cropping and padding with multiple padding modes and mask output | | Image Grid Split | Split images into grid layouts with flexible row/column configuration and selective output options |
๐งฉ Image Tiling Nodes
| Node Name | Description | |-----------|-------------| | Image Tile Split | Image tile splitting with overlap and custom grid support | | Image Tile Split Preset | Image tile splitting with predefined resolution presets and intelligent tile size selection | | Image Tile Merge | Image tile merging with intelligent stitching |
๐ High-Low Frequency Separation Nodes
| Node Name | Description | |-----------|-------------| | Image HLFreq Separate | Advanced frequency separation node supporting RGB, HSV, and IGBI separation methods with precise high-low frequency image separation and automatic recombination | | Image HLFreq Combine | Advanced frequency recombination node supporting RGB, HSV, and IGBI recombination modes with intensity adjustment and intelligent batch matching | | Image HLFreq Transform | Advanced detail transfer node supporting IGBI, RGB, and HSV transfer methods for precise texture detail migration from detail images to generated images |
๐ญ Mask Operation Nodes
| Node Name | Description | |-----------|-------------| | Mask Fill Hole | Fill holes in enclosed areas of masks with batch processing support | | Mask Math Ops | Mask mathematical operations (intersection, union, difference, XOR) | | Mask Batch Math Ops | Batch mask mathematical operations | | Mask Crop by BBox Mask | Mask bounding box cropping based on mask regions | | Mask Paste by BBox Mask | Simplified mask pasting with automatic base mask creation and bounding box detection |
๐ง Utility Nodes
| Node Name | Description | |-----------|-------------| | Workflow Name | Automatically retrieves current workflow filename with path control, custom prefixes/suffixes, and date formatting | | Range Mapping | Value range mapping tool supporting linear transformation and precision control for slider values | | Path Build | Path builder supporting preset paths and custom extensions |
๐ Conversion Nodes
| Node Name | Description | |-----------|-------------| | URL to Video | Convert video URLs to ComfyUI VIDEO objects with improved error handling, timeout control, and support for both synchronous and asynchronous download methods | | Image Batch to List | Convert batch images to image lists for individual processing | | Image List to Batch | Convert image lists to batch images with automatic size normalization | | Mask Batch to List | Convert batch masks to mask lists for individual processing | | Mask List to Batch | Convert mask lists to batch masks with automatic size normalization | | String Coordinate to BBoxes | Convert string format coordinates to BBOXES format with enhanced format support and improved SAM2 compatibility | | String Coordinate to BBox Mask | Convert string format coordinates to BBoxMask format with image dimension support and flexible output modes |
๐ง Logic Nodes
| Node Name | Description | |-----------|-------------| | Any Empty Bool | Universal empty value checker (boolean output version) that checks if any type of input is empty and returns a boolean value | | Any Empty Int | Universal empty value checker (integer output version) that checks if any type of input is empty and returns custom integer values | | Any Switch Bool | Universal boolean switch node supporting any type input with lazy evaluation, selecting output based on boolean condition | | Any Switch Int | Multi-way integer switch node supporting multiple input options, selecting corresponding input/output based on integer index (1-5) |
๐ฆ Batch Processing Nodes
| Node Name | Description | |-----------|-------------| | Image Batch Extract | Intelligent image batch extractor supporting multiple extraction modes including custom indices, step intervals, and uniform distribution | | Image Batch Split | Intelligent image batch splitter with forward/backward splitting modes and enhanced boundary condition handling | | Image Batch Group | Intelligent image batch grouper with configurable batch sizes, overlap handling, and flexible padding strategies | | Image List Append | Image list appender for intelligently merging images into lists | | Mask Batch Split | Intelligent mask batch splitter with forward/backward splitting modes and enhanced boundary condition handling | | Video Cut Group | Video scene cut detector that identifies scene transitions by analyzing frame similarity, supporting both fast and precise modes |
๐ Text Processing Nodes
| Node Name | Description | |-----------|-------------| | Int Wan | Integer sequence generator for creating 4n+1 arithmetic progression sequences with configurable step control and range validation | | Int Split | Integer splitter node for dividing total values into two parts, supporting both percentage (0.0-1.0) and integer split point input methods | | Text Filter Comment | Text comment filter for filtering single-line comments (starting with #) and multi-line comments (wrapped in triple quotes), preserving non-comment blank lines | | Text Join Multi | Multi-input text concatenator supporting multiple text inputs with dynamic variable referencing and custom separators | | Text Join by Text List | Text list joiner for merging any type of list into a string with support for prefix, suffix, and custom separators | | Text Prefix Suffix | Text prefix suffix formatter with wildcard input support for flexible data formatting with custom prefix, suffix, and separator | | Text Custom Extract | Text custom extractor for extracting specified key values from JSON | | List Custom Int | Custom integer list generator with dash separator and multiple delimiter support | | List Custom Float | Custom float list generator with dash separator and multiple delimiter support | | List Custom String | Custom string list generator with dash separator and multiple delimiter support | | List Custom Seed | Custom seed list generator for creating unique random seed lists with control after generate functionality |
๐ Acknowledgments
comfyUI_FrequencySeparation_RGB-HSV
๐ Star
My gratitude extends to the generous souls who bestow a star.
<img src="imgs/Stargazers.png" alt="Stargazers" style="zoom:80%;" />