CivArchive
    Auto Rename By Content - v1.0
    Preview 138715806
    Preview 138715807

    🤖 EZ Auto Renamer – ComfyUI Workflow

    Created by Me – a filmmaker & AI workflow designer. This clever tool automatically renames your images using AI! Just drop a folder of images into ComfyUI, and it analyses each one with Qwen 3.5, generates a five‑word descriptive filename (e.g., mountain_road_cave_foliage_hills), and saves them with the new names. Perfect for organising large datasets, training sets, or just keeping your creative assets tidy – all without manual typing.

    ---

    ### 🧩 Overview

    This workflow loads all images from a folder inside ComfyUI's input directory, sends each one to a Qwen 3.5 vision model, and asks it to output exactly five lowercase words describing the image, joined by underscores. It then checks the length of the generated name – if it's under 128 characters, it's used; otherwise, a fallback error message is applied. Finally, the images are saved with their new AI‑generated filenames in your output folder.

    ---

    ### 1️⃣ Required Models & Prerequisites

    Make sure these files are placed in your ComfyUI models/ folders:

    | Folder | Required Files |

    |--------|----------------|

    | text_encoders/ | qwen3.5_4b_bf16.safetensors (or qwen3vl_4b_fp8_scaled.safetensors) |

    > 💡 That's it! Only one model is needed – no diffusion models, VAEs, or LoRAs. The workflow uses only the text encoder for image captioning and renaming.

    ---

    ### 3️⃣ How It Works (AI‑Powered Batch Renaming)

    1. Load images – the LoadImageDataSetFromFolder node reads all images from a folder inside ComfyUI/input/ (e.g., a folder named Rename).

    2. Analyse each image – each image is passed to the TextGenerate node with Qwen 3.5, which is prompted:

    > "Output exactly five lowercase words describing the image, joined by underscores. Do NOT add any other text, punctuation, line breaks, or explanation. Only the five words."

    3. Clean and validate – the output is cleaned (removing any unwanted tags like </think> and newlines), and its length is checked. If it's 128 characters or less, it's accepted; if longer (e.g., if the model produced extra text), it falls back to ERROR Renaming.

    4. Save with new name – the image is saved with the generated filename (e.g., mountain_road_cave_foliage_hills.png) inside your output folder.

    ---

    ### 6️⃣ Advanced Settings (Optional)

    - Seed – set a fixed seed for reproducible name generation (if you want the same description for the same image each time).

    - Folder Name – change the folder inside ComfyUI/input/ that the workflow loads images from (default: Rename).

    - Prompt – you can customise the text prompt to get different styles or more/fewer words (e.g., "Output exactly 3 words...").

    - Length Check – the default limit is 128 characters; you can adjust this in the IFMatchCond node if you want longer or shorter filenames.

    ---

    ### 📦 Final Output

    After running, all images from your input folder will be saved in your output folder with descriptive, AI‑generated filenames – perfect for organising datasets, making files searchable, or preparing training material without manual labelling.

    ---

    Why I built this: As a filmmaker and VFX supervisor, I often work with hundreds of reference images, concept art, or frame grabs. Manually renaming them is tedious and time‑consuming. This workflow does it in seconds, giving me meaningful, consistent filenames that make my projects much easier to manage. I hope it helps you keep your creative files organised too! 🗂️✨

    ---

    📬 Contact: If you’d like to donate, ask a question, or order a custom workflow, reach out to me on Civitai (SaeedKhalili), visit my website SaeedKhalili.com, or email me at [email protected]. I’m always happy to help fellow creators!

    Description

    Workflows
    Other

    Details

    Downloads
    44
    Platform
    CivitAI
    Platform Status
    Available
    Created
    8/4/2026
    Updated
    8/10/2026
    Deleted
    -

    Files

    autoRenameByContent_v10.json

    Mirrors

    CivitAI (1 mirrors)