ComfyUI Extension: ComfyUI Mohseni Kit

Authored by mohseni-mr

Created

Updated

0 stars

A collection of useful nodes for ComfyUI, including Float Preview for live image visualization.

Custom Nodes (0)

    README

    āš” ComfyUI Mohseni Kit

    ComfyUI Mohseni Kit is a collection of useful custom nodes for ComfyUI, designed to improve visualization, workflow efficiency, and user experience.

    šŸŒŸ Features

    āœ… Float Preview Node ā€“ A live floating image preview for ComfyUI āœ… More nodes coming soon ā€“ The kit will be expanded with additional functionality āœ… Lightweight & Efficient ā€“ Optimized for performance and fast updates


    šŸ–¼ļø Float Preview Node

    šŸ”¹ What is Float Preview?

    The Float Preview Node allows you to preview generated images in a floating, resizable, and always-on-top window while using ComfyUI. Unlike the built-in preview, this window persists outside of the ComfyUI interface, making it perfect for multi-monitor workflows.

    šŸ”¹ Features

    • šŸ” Live Image Preview ā€“ View images in real-time while working in ComfyUI.
    • šŸ–„ļø Floating Window ā€“ Can be moved, resized, and stays always on top.
    • šŸ† Batch Image Support ā€“ Scroll through multiple images when batch processing.
    • šŸ’¾ Save & Copy ā€“ Easily save or copy previewed images.
    • šŸŽØ Nice Modern UI - PyQt6 ā€“ Supports dark/light themes and custom scaling based on system settings.
    • šŸ“Œ Always On Top ā€“ Keep the window visible while switching between apps.
    • šŸ–±ļø Window Dragging - Move the window to anywhere just bu dragging.
    • āš™ļø Persistant Settings - Your settings like window size, position and Always on Top will be save and load across workflows (inside this node directory itself).
    • āŒØļø Keyboard Shortcuts ā€“ Navigate images & toggle settings quickly.
    • ā˜° Right Click Menu - Same as keyboard shortcuts but in a right click menu

    šŸ“„ Installation

    • Manual Installation

      • (Method 1)
    1. Goto ComfyUI/custom_nodes directory in terminal(cmd)

    2.  git clone https://github.com/mohseni-mr/ComfyUI-Mohseni-Kit
      
    3. Restart ComfyUI

    • Using ComfyUI Manager (Soon - to be confirmed)

      • (Method 2)
    1. Open ComfyUI.
    2. Go to ComfyUI Manager.
    3. Search for ComfyUI Mohseni Kit and click Install.
    4. Restart ComfyUI.

    šŸ› ļø How to Use Find the node in ComfyUI under:

    āš” Mohseni Kit \ Preview

    Connect an IMAGE output to the Float Preview Node. Run the workflow. The floating window will appear, showing the generated images. Use arrow keys (ā† ā†’) or to navigate batch images. Right-click for additional options (Save, Copy, Always On Top).


    šŸ“Œ Settings & Controls

    | Action | Description | |--------------------|----------------------------------| | Up or Left | Navigate to Previous Image | | Down or Right | Navigate to Next Image | | CTRL + T | Toggle Always on Top | | CTRL + C | Copy Current Image to Clipboard | | CTRL + S | Save Current Image (PNG or JPEG) | | Esc | Close the Window | | Moouse Right Click | Open the Context Menu |


    šŸ“Œ Dependencies

    • PyQt6 (pip install PyQt6)
    • ftfy (pip install ftfy)

    šŸ“œ License

    This project is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).

    • You must credit the original author: Mohammadreza Mohseni.
    • If you modify this project, you must share it under the same license.
    • Commercial use is allowed, but credit is required.

    šŸ”— Read the full license here: CC BY-SA 4.0


    šŸ“¬ Contact & Support

    For questions or feedback, contact:

    Mohammadreza Mohseni