comfyui-niutonian-smart-image

comfyui-niutonian-smart-image
★ 0

图像拼接智能输入处理高质量缩放背景与对齐
为 ComfyUI 提供智能图像拼接与处理,自动忽略空/跳过输入,保持长宽比、支持多种重采样、对齐与背景选项,输出专业品质图片。
💡 在 ComfyUI 中自动拼接并高质量处理多张图片以输出最终图像。
🍴 1 Forks💻 Python🔄 2026-01-27
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/51137d50651f
📦 requirements.txt
#
Core
dependencies
(usually
provided
by
ComfyUI)
torch>=1.9.0
torchvision>=0.10.0
numpy>=1.21.0
Pillow>=8.3.0
#
Optional
dependencies
for
advanced
features
opencv-python>=4.5.0
#
For
panorama
stitching
feature
detection
📄 README

Niutonian Smart Image Suite

A comprehensive ComfyUI custom node suite for intelligent image stitching, processing, and manipulation with automatic handling of empty/bypassed inputs.

Nodes Included

1. Smart Image Stitch

Linear image stitching with intelligent input handling.

  • Features: 4-direction stitching, aspect ratio preservation, smart resizing
  • Inputs: Up to 6 images
  • Use Case: Creating panoramas, contact sheets, before/after comparisons
  • 2. Smart Grid Stitch

    Automatic grid arrangement with flexible sizing.

  • Features: Auto/manual grid sizing, uniform cell sizing, gap control
  • Inputs: Up to 9 images
  • Use Case: Photo grids, comparison matrices, thumbnail sheets
  • 3. Smart Panorama Stitch

    Advanced panoramic stitching with feature detection.

  • Features: Auto overlap detection, feature matching, seamless blending
  • Inputs: Up to 6 images
  • Use Case: Landscape panoramas, 360° views, wide-angle compositions
  • 4. Smart Collage Maker

    Artistic collage creation with varied layouts.

  • Features: Multiple layout styles, size variation, rotation, overlapping
  • Inputs: Up to 9 images
  • Use Case: Artistic compositions, mood boards, creative layouts
  • 5. Smart Image Splitter

    Intelligent image splitting into multiple parts.

  • Features: Grid splitting, overlap control, multiple output formats
  • Inputs: Single image
  • Use Case: Tiling for printing, creating puzzle pieces, detail extraction
  • 6. Smart Border & Frame

    Professional framing with multiple styles.

  • Features: 7 frame styles, shadows, rounded corners, custom colors
  • Inputs: Single image
  • Use Case: Photo finishing, presentation, artistic effects
  • 7. Smart Batch Processor

    Batch operations with template saving.

  • Features: Multiple operations, template system, progress logging
  • Inputs: Up to 9 images
  • Use Case: Workflow automation, consistent processing, batch jobs
  • Common Features

  • Smart Input Handling: Automatically ignores empty or bypassed image inputs
  • Aspect Ratio Preservation: Multiple handling modes (pad, crop, stretch)
  • High-Quality Resizing: Lanczos, bilinear, bicubic, nearest neighbor options
  • Flexible Alignment: Start, center, end positioning
  • Background Control: Transparent, white, black, custom colors
  • Professional Quality: Optimized for print and digital use
  • Installation

    Copy this folder to your ComfyUI custom_nodes directory and restart ComfyUI.

    ComfyUI/custom_nodes/comfyui_niutonian_smart_image/

    All nodes will appear under the “Niutonian/Image Processing” category.

    Quick Start Examples

    Basic Linear Stitching

  • Add “Smart Image Stitch” node
  • Connect 2-6 images
  • Set direction (right/left/top/bottom)
  • Choose resize mode and aspect handling
  • Result: Seamlessly stitched image
  • Photo Grid Creation

  • Add “Smart Grid Stitch” node
  • Connect multiple images
  • Select grid size (2×2, 3×3, etc.)
  • Set cell sizing mode
  • Result: Professional photo grid
  • Panorama Creation

  • Add “Smart Panorama Stitch” node
  • Connect overlapping images in sequence
  • Choose auto or manual overlap detection
  • Set feature detector and confidence
  • Result: Seamless panoramic image
  • Artistic Collage

  • Add “Smart Collage Maker” node
  • Connect images for collage
  • Choose layout style (magazine, scattered, spiral)
  • Enable rotation and size variation
  • Result: Creative artistic composition
  • Advanced Usage

    Template System (Batch Processor)

    Save frequently used settings as templates for consistent processing across projects.

    Chaining Nodes

    Combine multiple nodes for complex workflows:

  • Split → Process → Grid → Frame
  • Stitch → Collage → Border
  • Panorama → Split → Batch Process
  • Quality Settings

  • Use Lanczos resizing for best quality
  • Choose “pad” aspect handling to preserve content
  • Enable shadows and borders for professional finish