π FRED Image Load (avif support)
An image loader with folder browsing, AVIF support, and metadata passthrough
- image
- mask
- image_size_kb
- width
- height
- index
- total_images_qty_in_folder(s)
- images_qty_in_current_folder
- folder_path
- full_folder_path
- filename_text
- skipped_report
- positive_prompt
- negative_prompt
- parameters
- help
Stock ComfyUI Load Image is fine for dragging in one picture. The moment you want to walk through a folder of images - img2img them one at a time, or batch through a directory - the stock loader fights you. FRED_ImageLoad is the folder-walking, index-remembering, metadata-extracting version. It's the biggest node in the FRED pack for a reason: it does a lot.
The two modes
mode has two settings:
- no_folder - behaves like the stock loader: pick an image from the input folder via the
imagedropdown. - image_from_folder - point
pathat a directory and the node walks it, letting you advance withindex.include_subdirectoriespulls in subfolders,next_index_if_any_invalidskips broken files (with a persistent log in~/.fred_logs), andstop_at_max_indexgives you a clean end-of-batch signal.show_image_from_pathrenders a preview inside the node so you can see which image you're on.
Index controls: index (fixed), or the node can advance/randomize as you step through. clear_cache exists because the node caches the folder's file list for speed - and the README notes you should clear it before pointing it at a very large folder, since the cache rebuild is the slow part.
The part that matters most: metadata
With Get_metadata_from_file on (default), loading an image that carries embedded generation data gives you:
positive_prompt/negative_promptparameters- the full A1111-style parameter string, which you can feed straight into the FRED Image Saver's metadata or a prompt node.
This is huge for img2img workflows that take an old generated image, pull its original prompt, and re-run it with tweaks. It also reads the mask channel out of images that have one (transparent PNGs etc.) via the mask output.
Other useful outputs
width,height,image_size_kb- dimensions and file size.folder_path/full_folder_path/filename_text- naming info for save nodes and logs.index,total_images_qty_in_folder(s),images_qty_in_current_folder- your position and the folder counts, handy for progress-style logic or batch loops.skipped_report- which files were skipped and why.
The AVIF bit
The title advertises AVIF support, and it's real: the pack depends on pillow-avif-plugin and imageio, and the allowed extensions list includes .avif alongside jpeg, png, tiff, gif, bmp, and webp. If you're pulling modern lossy sources, this is one of the few loaders that reads them without a conversion detour.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/Poukpalaova/ComfyUI-FRED-Nodes_v2.git
Restart, or "ComfyUI FRED Nodes v2" via Manager. This node pulls the heavier end of the pack's requirements - opencv-python, imageio, pillow-avif-plugin - so the first install takes a moment.
Gotchas
If it feels slow on a big folder, that's the index cache being built - let it finish once and it's fast after. The metadata outputs only populate when the file actually has embedded generation data; a plain screenshot loads fine but yields empty prompt strings. And clear_cache before big folder changes, or you'll be stepping through a stale file list.
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| image | COMBO | 1 options: example.png | |
| Get_metadata_from_file | BOOLEAN | true | β |
| mode | COMBO | 2 options: no_folder, image_from_folder | |
| index | INT | 00β999999999 | β |
| stop_at_max_index | INT | 9999999990β999999999 | β |
| next_index_if_any_invalid | BOOLEAN | true | β |
| path | STRING | β | |
| include_subdirectories | BOOLEAN | false | β |
| show_image_from_path | BOOLEAN | false | β |
| clear_cache | BOOLEAN | false | β |
| filename_text_extensionopt | COMBO | false | 2 options: true, false |
| source_filename_hintopt | STRING | Auto-filled by the frontend with the dropped filename. |
Outputs (16)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | β |
| mask | MASK | β |
| image_size_kb | FLOAT | β |
| width | INT | β |
| height | INT | β |
| index | INT | β |
| total_images_qty_in_folder(s) | INT | β |
| images_qty_in_current_folder | INT | β |
| folder_path | STRING | β |
| full_folder_path | STRING | β |
| filename_text | STRING | β |
| skipped_report | STRING | β |
| positive_prompt | STRING | β |
| negative_prompt | STRING | β |
| parameters | STRING | β |
| help | STRING | β |