Nodes/ComfyUI-CraftKit/Smart Batch Resize πŸ“
ComfyUI Node

Smart Batch Resize πŸ“

A ComfyUI node in CraftKit with 13 inputs and 2 outputs.

By CraftopiaStudioΒ·Created 5 months agoΒ·Updated about a month agoΒ· 0
Smart Batch Resize πŸ“
    • images
    • count
    β—„input_folderβ–Ί
    β—„longest_side1024β–Ί
    β—„multiple_of8β–Ί
    β—„interpolationlanczosβ–Ί
    β—„prefixβ–Ί
    β—„use_original_nametrueβ–Ί
    β—„use_counterfalseβ–Ί
    β—„counter_start1β–Ί
    β—„suffix_resolutiontrueβ–Ί
    β—„folder_resolutionfalseβ–Ί
    β—„folder_customresizedβ–Ί
    β—„skip_if_existstrueβ–Ί
    β—„delimiter_β–Ί
    CategoryCraftKit

    Inputs (13)

    NameTypeDefaultDescription
    input_folderSTRINGFolder containing images to resize.
    longest_sideINT102464–8192Longest side target in pixels. Aspect ratio is always preserved.
    multiple_ofINT81–128Snap both dimensions to a multiple of this value. Use 8 for SD/Flux.
    interpolationCOMBOlanczosResampling method. Lanczos is sharpest for downscaling.
    prefixSTRINGLabel prepended to filename. E.g. 'headshot' β†’ headshot_photo_001_1024.jpg
    use_original_nameBOOLEANtrueInclude the original filename in the output name.
    use_counterBOOLEANfalseAdd a sequential 3-digit counter to each filename (001, 002, ...).
    counter_startINT10–99999Starting number for the counter. Useful when processing multiple batches.
    suffix_resolutionBOOLEANtrueAppend resolution to filename. E.g. photo_1024.png
    folder_resolutionBOOLEANfalseAppend resolution to subfolder name. E.g. resized_1024
    folder_customSTRINGresizedSubfolder name. Resolution is appended if 'Create resolution subfolder' is on.
    skip_if_existsBOOLEANtrueSkip files that already exist in the output folder.
    delimiterSTRING_Separator between filename parts. E.g. _ or -

    Outputs (2)

    NameTypeDescription
    imagesIMAGEβ€”
    countINTβ€”