66c5f465ecf3f3bcfc406d49ec8447b37dc694f3
ComfyUI_Swap_and_Scale
✨ Features
- 🔗 Upload a single image (from image sequence) with your pushover notification (optional)
- 📦 Includes additional message text (prompt for example)
🔧 Installation (Use ComfyUI customnode manager or clone this repo)
- Clone or download this repo into your
ComfyUI/custom_nodesdirectory:
cd /workspace/ComfyUI/custom_nodes
git clone https://github.com/MijnSpam/ComfyUI_SwapAndScale.git
- Install dependencies:
none
- Restart ComfyUI (or use the Reload Custom Nodes button if available).
- Refesh browser.
🧩 How to Use
Add node to workflow and connect a widht and heigth to the field.
In ComfyUI:
- example explanation:
1: Swap Width_Height is on and as you see the out_height is swapped with the width.2: example input image had dimensions 1344x752 >> 752 /32 = 23.5 and so with the factor_32px it's resize to 736.3: Total pixels (W*H) is below 1024000 px so no scaling done

2. example explanation:
- 1: NO Swap Width_Height, however 1MP and factor32 is on. Width 1504 / 32 = 47, Height 2720 / 32 = 85 >> ratio (w/h 0.552) scaled ratio 736 / 1344 = 0.547 Not perfect but it respects the 1MP Limit with the 32px rule.
🧑💻 Contributing
Pull requests and feature ideas are welcome!
Feel free to fork and create a PR.
📄 License
This project is licensed under the MIT License.
See LICENSE for details.
Languages
Python
100%
