ComfyUI Extension: Papcorns ComfyUI Custom Nodes
A collection of custom nodes for ComfyUI that enhances image processing and cloud storage capabilities.
Custom Nodes (0)
README
Papcorns ComfyUI Custom Nodes 🍿
A collection of custom nodes for ComfyUI that enhances image processing and cloud storage capabilities.
English
Features
This package includes the following custom nodes:
1. Papcorns - Aspect Resize
- Category:
Papcorns🍿
- Description: Advanced image resizing with aspect ratio control
- Modes:
- Aspect Fill: Zoom in and crop to exact target dimensions
- Aspect Fit: Scale to fit within target dimensions and add padding
- Padding Options: Black or white padding for aspect fit mode
2. Upload Image To GCS
- Category:
Papcorns🍿
- Description: Upload images directly to Google Cloud Storage from ComfyUI
- Features: Automatic file naming, public URL generation, error handling
Installation
-
Clone or download this repository to your ComfyUI custom nodes directory:
cd /path/to/ComfyUI/custom_nodes/ git clone https://github.com/your-username/Papcorns-Comfyui-Custom-Nodes.git
-
Install required dependencies:
pip install -r requirements.txt
-
Restart ComfyUI
Usage
Aspect Resize Node
- Add the "Papcorns - Aspect Resize" node to your workflow
- Connect an image input
- Set your desired width and height
- Choose resize mode:
- aspect_fill: Image will be zoomed and cropped to exact dimensions
- aspect_fit: Image will be scaled to fit with padding added
- For aspect_fit mode, choose padding color (black or white)
GCS Upload Node
- Add the "Upload Image To GCS" node to your workflow
- Connect an image input
- Set your Google Cloud Storage bucket name
- Provide the path to your service account JSON file
- The node will return a public URL of the uploaded image
Requirements
- ComfyUI
- Python 3.7+
- PIL (Pillow)
- google-cloud-storage (for GCS upload node)
- Valid Google Cloud Storage credentials (for GCS upload node)
GCS Setup
For the GCS upload node, you need:
- A Google Cloud Storage bucket
- A service account with Storage Admin permissions
- Downloaded service account JSON key file
Türkçe
Özellikler
Bu paket aşağıdaki özel node'ları içerir:
1. Papcorns - Aspect Resize
- Kategori:
Papcorns🍿
- Açıklama: En-boy oranı kontrolü ile gelişmiş görüntü yeniden boyutlandırma
- Modlar:
- Aspect Fill: Yakınlaştır ve tam hedef boyutlara kırp
- Aspect Fit: Hedef boyutlara sığdır ve kenarları doldur
- Dolgu Seçenekleri: Aspect fit modu için siyah veya beyaz dolgu
2. Upload Image To GCS
- Kategori:
Papcorns🍿
- Açıklama: ComfyUI'den doğrudan Google Cloud Storage'a görüntü yükleme
- Özellikler: Otomatik dosya adlandırma, genel URL oluşturma, hata yönetimi
Kurulum
-
Bu repository'yi ComfyUI özel node'lar dizininize klonlayın veya indirin:
cd /path/to/ComfyUI/custom_nodes/ git clone https://github.com/your-username/Papcorns-Comfyui-Custom-Nodes.git
-
Gerekli bağımlılıkları yükleyin:
pip install -r requirements.txt
-
ComfyUI'yi yeniden başlatın
Kullanım
Aspect Resize Node
- "Papcorns - Aspect Resize" node'unu iş akışınıza ekleyin
- Bir görüntü girişi bağlayın
- İstediğiniz genişlik ve yüksekliği ayarlayın
- Yeniden boyutlandırma modunu seçin:
- aspect_fill: Görüntü yakınlaştırılacak ve tam boyutlara kırpılacak
- aspect_fit: Görüntü sığdırılacak ve kenarlar doldurulacak
- Aspect_fit modu için dolgu rengini seçin (siyah veya beyaz)
GCS Upload Node
- "Upload Image To GCS" node'unu iş akışınıza ekleyin
- Bir görüntü girişi bağlayın
- Google Cloud Storage bucket adınızı ayarlayın
- Servis hesabı JSON dosyanızın yolunu belirtin
- Node, yüklenen görüntünün genel URL'sini döndürecektir
Gereksinimler
- ComfyUI
- Python 3.7+
- PIL (Pillow)
- google-cloud-storage (GCS yükleme node'u için)
- Geçerli Google Cloud Storage kimlik bilgileri (GCS yükleme node'u için)
GCS Kurulumu
GCS yükleme node'u için şunlara ihtiyacınız var:
- Bir Google Cloud Storage bucket'ı
- Storage Admin izinlerine sahip bir servis hesabı
- İndirilmiş servis hesabı JSON anahtar dosyası
License
This project is open source and available under the MIT License.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
If you encounter any issues or have questions, please open an issue on GitHub.