ComfyUI Node

K3NK Image Grab

A ComfyUI node in K3NK/loaders with 13 inputs and 6 outputs.

By K3NK3·Created 9 months ago·Updated 2 months ago· 8
K3NK Image Grab
  • vae
  • image
  • latent_batch
  • anchor_frame
  • filenames
  • full_paths
  • timestamp
directory_path
num_images2
frame_stride5
reverse_orderfalse
reverse_logicfalse
max_batch_frames0
batch_start_frame0
batch_end_frame0
anchor_from_startfalse
anchor_frame_index0
latent_frame_stridetrue
file_extensionsjpg,jpeg,png,bmp,tiff,webp,latent
CategoryK3NK/loaders

Inputs (13)

NameTypeDefaultDescription
directory_pathSTRING
num_imagesINT21–10000
frame_strideINT50–10000Number of frames to skip between selected files (applies to images AND latent files)
reverse_orderBOOLEANfalseReverse the order of selected files in output
reverse_logicBOOLEANfalseReverse selection logic: start from oldest instead of newest
max_batch_framesINT00–1000Max frames to output in latent_batch (0 = all frames) Note: WanVideoWrapper processes frames in groups of 4 (frame groups)
batch_start_frameINT00–1000Starting FRAME GROUP index (0=first group, 1=second group, etc.) Each group contains 4 frames in WanVideoWrapper
batch_end_frameINT00–1000FRAME GROUPS to remove from END (0=keep all, 1=remove last group, etc.) Each group contains 4 frames in WanVideoWrapper
anchor_from_startBOOLEANfalseTrue: first frame of lowest-number file False: last frame of highest-number file
anchor_frame_indexINT00–10000Frame index to use as anchor (0=first/last depending on anchor_from_start, 1=second/second-to-last, etc.)
latent_frame_strideBOOLEANtrueApply frame_stride to latent files (skip frames inside .latent files)
file_extensionsoptSTRINGjpg,jpeg,png,bmp,tiff,webp,latent
vaeoptVAE

Outputs (6)

NameTypeDescription
imageIMAGE
latent_batchLATENT
anchor_frameLATENT
filenamesSTRING
full_pathsSTRING
timestampFLOAT