Rigstools
Nodes that keep the generation data with the picture: load an image with its prompt, workflow and A1111 parameters as editable outputs, save it with Civitai-ready metadata, correct colours without AI — and PicoTeka, a fast gallery that sends pictures and parameters back to your workflow.
Rigstools started as my own set of tools for everyday work in ComfyUI. I wanted a picture to carry its generation data the right way — so that Civitai recognises the model, the LoRA and the parameters — and I wanted to take that data back from a finished picture straight into a new generation. With the usual nodes this meant a chain of extra nodes and wires, and the result still wasn't quite what I wanted to work with. So every Rigstools node does the whole job in one place: it shows the parameters, lets you change them, and gives each one as its own output.
The nodes grew out of ComfyUI-Crystools by Crystian, which has not been updated for a long time, and went far beyond it. The galleries I tried were slow on big folders and misread prompts, models and parameters — so version 2.0 brings its own: PicoTeka.
What's inside
- PicoTeka — a fast and simple gallery of your pictures: folders, search, filters, tags, rating, comparison; sends a picture or its parameters straight into the open workflow, and the selected pictures as a post to Civitai, the popular AI art site.
- Loaders — a picture together with its generation data (PNG, JPEG, WebP; one file, a folder by index or the newest): the ComfyUI prompt and workflow and the A1111-style parameters, shown on the node, editable, each as its own output.
- Extractors — the same data from any image in the graph; Generation parameters holds parameters without a picture.
- Save image — collects the parameters from the graph by itself and writes them so that Civitai and A1111 read them, with model and LoRA hashes.
- Color correction — without neural networks: white balance, levels, vibrance, matching to a reference, a histogram and an auto mode.

Installation
- ComfyUI-Manager: Custom Nodes Manager → search for “Rigstools” → Install.
- comfy-cli:
comfy node install comfyui-rigstools - Manually:
git clone https://github.com/ScrudgMcDack/ComfyUI-RigstoolsintoComfyUI/custom_nodes/.
Restart ComfyUI afterwards. The extra Python packages are send2trash (for deleting to the recycle bin in the
gallery) and pyoxipng (lossless compression of big PNGs before posting to Civitai); ComfyUI-Manager and comfy-cli install them, for a manual install run pip install -r requirements.txt.
PicoTeka — the gallery
PicoTeka is a fast and simple gallery to organise your generations. Open it with its button (four coloured squares)
on the ComfyUI top bar or at http://<ComfyUI address>/rigstools/gallery — it opens in a separate browser tab, so
ComfyUI keeps working.

Folders and the index
- The ComfyUI output folder is there from the start; + Add folder adds any other folder, chosen in a folder browser (from this computer only). Subfolders are shown as a tree; Ctrl + click shows several folders at once.
- Pictures are indexed in the background. After every finished run the gallery looks at the folders at once — wherever the picture was saved — and the open page also looks by itself every 10 seconds, to catch pictures added outside ComfyUI (the interval is in the settings).
The grid
- New pictures take their places by the sort by themselves and are highlighted for a moment. The grid does not jump: what you are looking at stays where it is. If a new picture would shift the rows in front of you, it waits (except at the very top of the grid with nothing selected), and a New pictures: N ↑ bar appears over the grid; a click on it shows them. An arrow ↓ means the new pictures are further down, e.g. when sorted oldest first.
- Search by prompt and file name; filter by model, LoRA, sampler, tag, rating and date; sort by date, name or rating. Thumbnails show the format, the rating and the tags; the bigger the thumbnails, the more they show.
- A click picks a picture, Ctrl + click adds it to the selection or takes it out, Shift + click selects a range.
Escor a click on the empty space unpicks. - A right click on a thumbnail opens the menu of a picture (below). The bottom bar shows, under the middle of the grid, how many pictures are shown and how many are selected.
Card
The picked picture with all its parameters, in the same view as under our loaders, and the buttons: Picture to workflow, Parameters to workflow, Open workflow, Publish to Civitai (below) and “⋯ More” — the menu of a picture.
Menu of a picture
A right click on a thumbnail or on the picture in the viewer, or the “⋯ More” button on the card. A right click on a picture that is not selected picks it; on one of the selected pictures it opens the menu for the whole group.
- Workflow — picture to workflow, parameters to workflow, open workflow.
- Copy — the picture (Ctrl + C: to the clipboard as PNG, without the generation data, one picture at a time), the parameters, the file path (for a group, the paths, one per line; from this computer only).
- Organize — rating, tags and moving.
- Publish to Civitai, File data (the raw metadata), Delete.
For a group, the actions that work with one picture only are inactive.
Viewer
Double click opens a picture full screen with zoom (wheel, 100%, fit), a minimap and the parameters panel; ← → page through the pictures. The top bar has the rating, Picture to workflow and Parameters to workflow; a right click on the picture opens its menu. The mouse and key hints are behind the ? sign on the bottom bar.

Tags, rating, deleting and moving
- Tags are set and taken off in a drop-down list with search: it opens with the + tag chip on the card, the Tags item in the menu of a picture and the T key. Several tags can be chosen at once; “–” means the tag is on some of the selected pictures only (the counter says “k of n”). A new tag can be made right from the search.
- Tags get their colours automatically; rename, merge or delete them in Tags → manage. Rating is 0–5 stars. Both work for several selected pictures at once.
- Delete sends files to the recycle bin of the system (with the
send2trashpackage, installed with the node); tags and rating are kept for 30 days, so a file restored from the bin comes back with them. Shift + Delete (or Shift + click on Delete in the menu of a picture) deletes the files permanently, past the bin, after a warning. Move puts files into another gallery folder or a new subfolder. - A file moved or renamed outside the gallery is treated as a new picture.
Comparison
Select two pictures (Ctrl + click) and press Compare: side by side or with a slider. Zoom (wheel, 5–1600%, fit; double click — fit / 100%) and position (drag) are shared by both; their names are shown over the pictures with the marks A and B. Under the pictures, a table with every parameter on its own row and the differences highlighted (prompts by phrase, LoRA by name and weight); Hide equal parameters leaves only what differs. The border between the pictures and the table can be dragged.

To the open workflow
As LoRA Manager does: the gallery sends to the ComfyUI tab you used last.
- Picture to workflow puts the picture into Load image with parameters or Load image with metadata. Pictures
from the output folder are used as they are; pictures from other folders are copied to
input/rigstools_gallery/. - Parameters to workflow fills the Generation parameters node (below). A new send replaces all values, values changed by hand included.
- Open workflow opens the workflow saved in the picture in a new tab.
When the workflow has several suitable nodes, a list shows them with their group names (hovering a line shows the node on the canvas); when it has none, the gallery offers to add one.
Publishing to Civitai
Publish to Civitai (on the card and in the menu of a picture — for the selected pictures) makes one Civitai post of the selected pictures, in the order they were selected. One post — one go — takes at most 20 pictures, with a title and a description.
-
In the form the pictures can be sorted by dragging and taken out (✕); the first picture in order becomes the cover of the post. Each thumbnail shows the format the picture will be sent to the site in (see below). A yellow ! marks a picture without generation data (Civitai will not find its model, LoRA, embedding), a red 10+ marks a picture that will not fit into 10 MB even after compression.
-
The pictures are uploaded one by one; each thumbnail shows its state: a yellow spinner — uploading, a green check — uploaded, a red cross — the upload failed. The status line at the bottom of the window shows the current step and, at the end, the post link. The upload cannot be cancelled (Civitai has no way to delete an uploaded picture that is not in a post yet). Closing the window hides it to a progress bar on the status bar — a click brings it back, and when the post is made the window comes back by itself and waits for you.
-
A posted picture gets a CIVITAI chip next to its format, on the thumbnail and on the card: grey while its post is a draft, blue once the post is published, and red when the post is rated R, X or XXX (Civitai shows such posts on civitai.red, and the links to them go there too). A click on the chip lists the posts the picture was added to and/or published in (number with a link, state, date). From that list you can delete from Civitai this very picture or the whole post with all its pictures (your files on the disk stay); the last picture of a post takes the post with it. Deleting waits until Civitai has checked the pictures. A post or a picture deleted on the Civitai site is forgotten when PicoTeka next asks about it, and the chip goes. It is not a tag and cannot be removed by hand.
-
Once Civitai has checked the picture, its age rating (PG, PG-13, R, X, XXX) is shown next to the chip; the tooltip says what it means. PicoTeka asks Civitai when you pick a picture with the chip (at most every 5 minutes a post) and when you click the chip; the state of the post (draft / published) is updated at the same time.
-
Tools and Techniques of the pictures, as on the Civitai site: ComfyUI and workflow, txt2img, img2img to start with; change them in the window (any tool of the Civitai list can be added) and the window keeps your choice for the next posts. They are set on all the pictures of the post right after it is made, a draft too — only what a picture does not have yet.
-
Publish the post now is off by default: the post is created as a draft — look it over and publish it on Civitai yourself when you want. Both checkboxes are remembered.
-
Keep the workflow data in the file is on by default. When off, the ComfyUI workflow and prompt are taken out of the uploaded copy, the generation parameters stay. The files on your disk never change.
-
No model needs to be attached to the post: Civitai finds the model, the LoRA and the parameters in the pictures' data itself (written by the Save image node), so a post may hold pictures of different models.
-
Civitai's MCP takes pictures up to 10 MB. For a bigger PNG, PicoTeka tries several ways in turn until one fits:
- PNG → PNG: the same PNG compressed harder, but without loss (oxipng, installed with the node) — all the metadata stays;
- PNG → WEBP: WebP without loss — stronger compression, the picture is the same pixel for pixel; the parameters and the ComfyUI workflow go into EXIF (the workflow where ComfyUI itself puts it in a WebP);
- PNG → JPEG: quality 95 — the strongest compression, with loss; the parameters stay in EXIF, the workflow does not.
Big pictures are compressed one by one as soon as the form opens. A compressed picture has two arrows inwards before its format. Without “Keep the workflow data in the file” the ComfyUI workflow and prompt are cut out of the copy first (the picture itself is not touched), which often is enough. The file on your disk never changes.
-
New pictures pass Civitai's moderation, which rates and censors them, so others may see your post a bit later.
-
Sending pictures is off by default. Turn it on in Settings → Rigstools → Civitai → Allow posting from PicoTeka to Civitai (below). You will need a Civitai API key; for safety it works from this computer only. The pictures go through the Civitai MCP server (
mcp.civitai.com), sent by the ComfyUI server; the key is kept by the ComfyUI server, not in its settings, and never reaches the page.
Keys
| Where | Keys |
|---|---|
| Grid | arrows, Home, End — move · Enter — viewer · Esc — unpick |
| Selected pictures | 0–5 — rating · T — tags · M — move · Ctrl + C — copy the picture · Delete — delete to the recycle bin · Shift + Delete — delete permanently (asks first) · C — compare |
| Viewer | ← → — page · I — parameters panel · + / − — zoom · Ctrl + 0 — fit · Esc — close |
| Comparison | + / − — zoom · Ctrl + 0 — fit · Esc — close |
The index and the thumbnail cache are kept in <ComfyUI user folder>/rigstools/gallery; the pictures themselves are
never changed by the index.
Nodes
Load image with metadata
Loads an image together with its generation data — a drop-in replacement for Load image with metadata of
Crystools: METADATA_RAW has the same format, so Metadata extractor and everything after it keep working.
- Every format Image Saver writes. PNG text chunks; for JPEG and WebP the EXIF:
UserComment→ parameters (Image Saver, A1111, Forge),Make/Model→ workflow / prompt (Image Saver, stock Save Animated WEBP, old Crystools). Crystools reads only PNG fully. JPEG keeps at most 64 KB of EXIF, so Image Saver usually stores only the parameters there. - Input or output folder. The list has the input files first, then the output files (newest first, marked
[output]) — your own results load without copying them to input. The upload button puts a file into input. - What the file has, at a glance:
- the caption under the image continues the stock one:
1024 × 1536 · PNG · all metadata ✓, otherwise it names what is missing (parameters from prompt,no prompt, workflow,no metadata); - outputs that carry nothing are dimmed;
PARAMETERS ↻with an amber dot — rebuilt from the ComfyUI prompt; a connected output that carries nothing gets an amber ✕ instead of the dot, and its tooltip says why (not forLORA_STACK: "no LoRA" is a normal answer); - the ⓘ button in the title (green / amber / grey) opens the full parameters text with Copy parameters, Copy prompt (JSON) and Open workflow (opens in a new tab, like dropping the file on the canvas).
- the caption under the image continues the stock one:
- Mask from the alpha channel (masks drawn in the mask editor are kept), EXIF rotation applied, the file is re-read when it changes.
| Output | Type | Content |
|---|---|---|
| IMAGE, MASK | IMAGE, MASK | the image and the mask from its alpha channel |
| METADATA_RAW | METADATA_RAW | all metadata — connect to Metadata extractor |
| PARAMETERS | STRING | A1111-style parameters (rebuilt from the prompt when the file has none) — can go straight to Parameters extractor |
| FILENAME | STRING | file name with the extension |
Load image with parameters
The same loader, but the generation parameters are shown right under the picture, each in its own field —
and each is also an output. It replaces the Load image with metadata → Metadata extractor → Parameters extractor
chain with one node; the separate nodes stay, so existing workflows keep working and the nodes can be combined freely
(METADATA_RAW → Metadata extractor, PARAMETERS → Parameters extractor, LORA_STACK → LoRA hashes for Image Saver).

The picture has no seed, clip skip or model: their fields have an empty circle, and the connected SEED, CLIP and
MODEL_NAME outputs show ✕ — a substitute comes out of them. steps was typed by hand: amber, ↺ returns the value of
the file.
- Fields, in a card titled Parameters from the file: positive and negative prompt,
seed · steps · cfg · clip,sampler · scheduler,model · width · height, LoRA. The dot before a label says where the value comes from: green — from the file, amber — changed by hand, an empty circle — not in the file; the legend is under the fields. Save image shows its values in the same card. They stretch with the node; on a narrow node the labels are shortened first (sched…), the full value is in the tooltip. Prompts and a long LoRA list scroll with the mouse wheel; past their end the wheel zooms the canvas as usual. - LoRA — the models themselves, not the tag text: each LoRA of the image with its weight, found in
models/loras(with the subfolder); a red one is not found there. Hover a LoRA to see its file. When the name in the image has no epoch and the file has one (Style→Style-000003.safetensors), the file is used if it is the only such epoch. - Fields can be edited. A changed value is highlighted and goes to the output instead of the one from the image; ↺ returns the image value, Esc cancels typing. Typed values belong to the picture — choosing another picture clears them. They are saved with the workflow.
- Values the image doesn't have use the defaults (grey italics: seed 0, steps 20, cfg 7, clip −2, 1024 × 1024,
euler / normal) and their outputs are dimmed. A model not found in
models/checkpointsis red. - The caption, dimmed outputs and the ⓘ button work as in Load image with metadata.
Outputs: IMAGE, MASK, METADATA_RAW, PARAMETERS, POSITIVE, NEGATIVE, SEED, STEPS, CFG, CLIP, WIDTH,
HEIGHT, SAMPLER, SCHEDULER, MODEL_NAME, LORA_STACK. PARAMETERS is the text from the file;
values typed in the panel are not written into it.
Load image from folder
The same outputs plus INDEX and COUNT, but the file is picked from a folder:
folder:output,output/STEP_1,input/…,tempor an absolute path (a plain relative path is inside output);mode: by index — file numberindexof the sorted list; with control after generate =incrementeach run takes the next file and wraps around at the end, so a queue of N runs processes the whole folder; latest — the newest file (generate → refine right away);pattern: name filter, several separated by;(STEP_1_*.png; *.webp),sort: name (natural, 2 before 10) or date modified,subfolders.
After a run the node shows the picture with the same caption, dimmed outputs and ⓘ button (with the file's number in the list). In latest mode don't save into the same folder from the same workflow, or the next run picks up its own result.
Metadata extractor
Splits the metadata of an image into separate outputs.
| Output | Type | Content |
|---|---|---|
| PROMPT | JSON | ComfyUI API prompt stored in the image |
| WORKFLOW | JSON | ComfyUI workflow stored in the image |
| FILEINFO | JSON | file name, resolution, date, size |
| PARAMETERS | STRING | A1111-style parameters text — connect it to Parameters extractor |
| RAW2JSON | JSON | all metadata as JSON |
| RAW2PROPERTIES | STRING | all metadata as key=value lines |
| RAW2CSV | STRING | all metadata as tab-separated key/value lines |
Images without parameters (e.g. saved by the stock Save Image): with parameters_from_prompt on (default),
the parameters are rebuilt from the ComfyUI prompt stored in the image. The main sampler is found in the graph
(a txt2img sampler from an empty latent is preferred over detailers and upscalers) and its seed, steps, CFG, sampler,
scheduler, size, prompts, checkpoint, LoRA (LoraLoader, LoRA Manager) and clip skip are traced back through the links —
including switches, string concatenation and Show Text nodes. Values that cannot be determined reliably
(random seeds, wildcards resolved at run time, unknown nodes) are left out, so Parameters extractor uses its fallbacks.
The rebuilt text ends with Version: ComfyUI (rebuilt from prompt).
Input: metadata_raw (METADATA_RAW) from Load image with metadata — of Rigstools or of
ComfyUI-Crystools.
Parameters extractor
Parses the A1111-style parameters text into separate values.
| Output | Type | Content |
|---|---|---|
| SEED | INT | seed |
| STEPS | INT | sampling steps |
| CFG | FLOAT | CFG scale |
| CLIP | INT | clip skip as a negative number (e.g. -2), ready for CLIP Set Last Layer |
| WIDTH, HEIGHT | INT | image size |
| POSITIVE, NEGATIVE | STRING | prompts exactly as stored in the image (LoRA tags included — they are part of what the text encoder saw) |
| MODEL_NAME | STRING | checkpoint path in models/checkpoints when the file is found (subfolders, any case), otherwise the name from the image |
| LORA_STACK | STRING | <lora:name:weight> tags: the Lora stack field, otherwise the LoRA tags of the positive prompt; None when the image has no LoRA |
| SAMPLER, SCHEDULER | combo | ComfyUI names converted from A1111 / Civitai names (DPM++ 2M Karras → dpmpp_2m + karras) |
Input: parameters — the PARAMETERS output of Metadata extractor.
Fallbacks. fallback_seed, fallback_steps, fallback_cfg, fallback_clip_skip, fallback_width,
fallback_height, fallback_sampler, fallback_scheduler: a value found in the image wins, otherwise the fallback is used.
Set them on the node or convert them to inputs and connect your own values. Images without parameters
(e.g. saved by the stock Save Image) no longer stop the workflow — all values come from the fallbacks.
Generation parameters
Holds generation parameters without a picture — the gallery fills it with Parameters to workflow. The panel is the
same as under Load image with parameters: every value can be changed by hand (an amber dot marks it), and the outputs
are the same as those of Parameters extractor: SEED, STEPS, CFG, CLIP, WIDTH, HEIGHT, POSITIVE,
NEGATIVE, MODEL_NAME, LORA_STACK, SAMPLER, SCHEDULER. The values are saved with the workflow.

LoRA hashes for Image Saver
Turns a LoRA stack (<lora:name:weight> …) into the additional_hashes string of
Image Saver, so LoRA get into the image metadata and are linked on
Civitai without putting the LoRA tags into the prompt — the tags change what the text encoder sees.
| Input / output | Content |
|---|---|
| lora_stack | LoRA tags, e.g. the LORA_STACK output of Parameters extractor |
| with_weights | write Name:HASH:weight; Image Saver accepts weights only with download_civitai_data on — turn off otherwise |
| additional_hashes (optional) | hashes to keep; put before the LoRA hashes |
| ADDITIONAL_HASHES | connect to additional_hashes of Image Saver |
| NOT_FOUND | LoRA from the stack that are not in models/loras |
Each LoRA is found in models/loras (same matching as Image Saver) and hashed with SHA-256 (first 10 characters).
Hashes are cached in <lora>.sha256 next to the file — the same cache Image Saver uses, so a file is hashed once.
The stock ComfyUI Save Image node does not write A1111-style parameters into PNG info. Save images with an A1111-compatible saver (e.g. the Image Saver custom nodes) to get them.
Save image
Saves pictures with their generation data without wiring the parameters by hand: the node walks back from the picture through the graph and finds the sampler, prompts, seed, steps, CFG, sampler / scheduler, checkpoint, LoRA from the loader nodes (LoraLoader, Power Lora Loader, LoRA Manager), clip skip and the upscale / detailer passes. Values our loaders read from a file (Parameters extractor, Load image with parameters) are taken from that file.

txt2img: every value is found in the graph — the LoRA from the two loaders, clip skip from CLIP Set Last Layer, the size from the empty latent.
The panel on the node shows what the next run will write, in the same fields as Load image with parameters:
every value with a dot — grey from the graph, blue from a connected input, green from the source file, an empty circle
not found — and the name of the next file. In that name, values that are determined only at run time — the time, the
size after an upscale, a value of a connected input that a node computes — are shown in brackets: [time], [width],
[height], [seed]. The node and the ⓘ window always show the next save, whether a run happened or not; what was
actually written goes to the console (Settings → Rigstools → Debug). ⓘ in the title opens the blocks written into the
file, the warnings and notes (a LoRA that is not in models/loras, a hash that will be calculated, a resource without a
Civitai ID) and the full parameters text. The node grows when its data does not fit and never shrinks by itself, so a
height set by hand stays. 🛟 Node Help in the node's context menu lists the file name variables, the date codes and
examples.
Which pass gives the values
The node orders the samplers above the picture as they run and uses only the passes that redraw the whole picture — samplers and upscalers (Ultimate SD Upscale and the like). Detailers and inpaint samplers (a sampler whose latent or conditioning comes through an inpaint / Set Latent Noise Mask node) repaint only a part and are not used.
- txt2img — a pass starts from an empty latent: the main values come from the first such pass, the Hires fields
(
Hires upscale,Hires steps,Hires upscaler, denoise) from the last whole pass after it; the upscaler is the upscale model closest before that pass. - img2img — no pass starts from an empty latent: the main values come from the last whole pass, as it made the picture; there are no Hires fields.
txt2img or img2img is decided by the kind of the latent node, not by its size.
Prompts and other values
- The prompt is followed from the text encoder of the main pass back through conditioning pass-through nodes, switches, pipes, Show Text and string concatenation nodes.
- When it runs, the node takes the values the nodes really output in this run from ComfyUI's execution cache —
e.g. the text a concatenation produced, together with the trigger words LoRA Manager adds. Such a value is marked
[runtime]in the console log. The cache is internal to ComfyUI; when a value is not there, the rules below apply. - Before the run (and as the fallback): a concatenation keeps the parts that are known and leaves out the parts known only at run time; if no part is known, img2img takes the prompt of the source picture.
- Size: from the empty latent; in img2img, when the graph does not give it, the run writes the size of the picture being saved (not when there are Hires fields). Before the run it is shown as not found.
- A value read from the source file is marked "from the file" only when it reaches the node unchanged; text joined to it in the graph makes it "from the graph".
Preference: which source wins
The switch Preference: File | Graph | Input in the header of the card chooses the source that wins for every field; the others are the fallback:
| Preference | Order | |---|---| | Input (default) | connected input → graph → source file | | Graph | graph → connected input → source file | | File | generation data of the source picture → connected input → graph |
A connected input counts even when its value is known only at run time. The size is never taken from the source file (an upscaled picture has another size). The choice is saved with the workflow; workflows saved before it get Input, the old behaviour.

img2img: positive, negative, seed and lora_stack are wired from the loader (blue dots), steps, CFG, sampler
and denoise come from the KSampler of this pass. The red LoRA is not in models/loras, so ⓘ in the title is amber.
LoRA
- Input: a connected
lora_stackreplaces the whole list. It takes a text of<lora:name:weight>tags separated by spaces, as theLORA_STACKoutput of our loaders gives it — not theLORA_STACKtype of stacker nodes. - Graph: the loaders on the model path of the main pass (LoraLoader, LoraLoaderModelOnly, Power Lora Loader,
LoRA Manager — its active rows, in either form its list comes in), preceded by the LoRA of earlier passes: the
<lora:…>tags in the prompt of the source picture, itsLora stack, then the tags in the current prompt. A LoRA met twice keeps the entry of this pass. The chips on the node show where each comes from: solid — this pass, dashed — an earlier pass, dotted — a tag in the prompt; red — not found inmodels/loras. - File: only the LoRA of the source picture.
All of them go into Lora hashes, Civitai resources and Lora stack.
| Input / output | Content |
|---|---|
| filename, path | file name and subfolder of the output folder; variables %date, %date<%Y%m%d>, %time, %model, %seed, %steps, %cfg, %sampler, %scheduler, %width, %height, %counter, %counter<4> (next free number). An existing file is never overwritten |
| format, quality | png, jpeg (metadata up to 64 KB), webp (lossless at quality 100); quality is 100 by default |
| metadata | all — parameters + workflow; parameters only — for publishing without your workflow; none |
| workflow_json | also save the workflow next to the picture as <name>.json |
| positive, negative, seed, steps, cfg, sampler_name, scheduler, model_name, clip_skip, denoise, lora_stack (optional) | connect to give this value yourself — e.g. a prompt that a wildcard node builds at run time and the graph does not hold; with Preference = Input (default) it wins over the graph. lora_stack: <lora:name:weight> tags separated by spaces |
| FILEPATH | full paths of the saved files |
| PARAMETERS | the A1111-style parameters text that was written |
| HASHES | hashes of the model, LoRA and embeddings |
The parameters text has the A1111 fields A1111, Forge and Civitai read — including Schedule type, Denoising strength,
Hires upscale / Hires steps / Hires upscaler, Lora hashes, TI hashes, Hashes — plus Lora stack, so our
loaders give the LoRA with their weights back. Hashes use the <file>.sha256 cache next to the model (the same one
Image Saver uses); a cache older than the file is recalculated.
Civitai resources. Civitai takes the LoRA weights only from the Civitai resources block, where each model is
given by its Civitai version id. The node writes it for every model, LoRA and embedding whose id it knows. Those go
only into this block (as in Image Saver), the others are found by their hashes; a LoRA without an id is linked on
Civitai too, just without its weight.
Where the data comes from:
| What | Source |
|---|---|
| hashes (SHA-256, the first 10 characters go into the file) | <model>.sha256 next to the model — the same cache Image Saver uses; or the SHA-256 in LoRA Manager's .metadata.json; otherwise the node hashes the file once |
| Civitai version ids, in this order | 1. our cache <ComfyUI user folder>/rigstools/civitai.json (by the full SHA-256 — renaming or moving a model keeps it); 2. the files next to the model: <model>.metadata.json of LoRA Manager, <model>.civitai.info of Image Saver / Civitai Helper; 3. only with Settings → Rigstools → Civitai → Look models up on Civitai by their hash on (off by default): the public Civitai API by the hash, no API key |
Whatever 2 and 3 find is kept in our cache, so it works without LoRA Manager and Image Saver later too. "Not on
Civitai" is remembered and asked again after a week. LoRA Manager's files are found only when it keeps them next to
the models (its default); with its centralized storage they are not seen — turn the lookup on instead. The lookup
sends the hashes of your files to civitai.com, so Civitai learns which models you use. Nothing is written into the
model folders. When a big workflow does not fit into JPEG, the node
warns; turn on workflow_json to keep it in a file.
Color correction
Automatic colour correction without neural networks — a replacement for the Auto mode of other colour nodes, with every step visible and adjustable. Each picture of a batch is measured on its own.

| Input / output | Content |
|---|---|
| mode | manual — white_balance, levels and vibrance are set by hand and are the same for every picture. auto — the node measures every picture and chooses them itself, plus a small exposure correction (see below) |
| strength | overall strength: 0 — the original, 1 — the full correction |
| white_balance | removes a colour cast: near-neutral areas are moved towards grey, saturated colours keep their hue. An intended warm / cold mood is a cast too — keep it low for such pictures |
| levels, levels_clip | stretch the lightness between the darkest and the lightest tones (levels_clip % of pixels ignored at each end); hue and saturation stay |
| vibrance, protect_skin | raise the saturation of dull colours more than of saturated ones; skin hues are protected |
| reference (optional), reference_strength | match mean and spread of lightness and colour to a reference — e.g. the image before upscaling, when the upscale shifted the colours |
| exposure, contrast, saturation, temperature, tint, lift, gamma, gain | manual adjustments after the automatic steps (0 = off) |
| mask (optional) | correct only where the mask is white |
| IMAGE | the corrected image (an alpha channel is kept) |
| HISTOGRAM | RGB histograms of the result, the original as an outline — connect to Preview Image |
Order: reference → white balance → levels → vibrance → manual adjustments → mask → strength.
Auto mode. Per picture the node measures the colour cast of near-neutral areas, the black point, the mean lightness and the mean chroma, and chooses:
- white balance — only a warm (yellowish) cast is removed, and gently: the larger the cast, the weaker the strength, so it moves by about one Lab unit; a cool cast is left;
- levels — weaker when the black point is raised (a hazy picture is not stretched hard);
- vibrance — more for dull pictures, less for already colourful ones;
- exposure — a dark picture is darkened a little (down to −0.15 stops), a bright one is left.
The rules were fitted to the look of the Auto mode of Easy Color Corrector. levels_clip, protect_skin, the reference
and the manual adjustments work in both modes. With Debug on, the measured values and the chosen strengths go to the
console.
reference_strength is greyed out while no reference is connected, white_balance, levels and vibrance — in auto
mode. 🛟 Node Help in the node's context menu explains
every setting.
Output marks
All Rigstools nodes show what their outputs will carry:
- dimmed — nothing / only a substitute value (default, fallback, empty string);
- ↻ with an amber dot — parameters rebuilt from the ComfyUI prompt;
- amber ✕ instead of the dot — the output is connected, but a substitute comes out of it (or, for
ADDITIONAL_HASHES, some LoRA were not found and their hashes are missing).LORA_STACK = Noneand an emptyADDITIONAL_HASHESwithout LoRA get no ✕ — "no LoRA" is a normal answer.
Loaders know this from the file. Metadata extractor, Parameters extractor and LoRA hashes predict it before a run when the chain starts at a Rigstools loader, otherwise they show it after a run (until an input is reconnected).
Tooltips. Output tooltips say what the output is and what its ✕ means. With Draftsman installed they become specific to the current picture: a short title and a coloured line — green: what comes out ("From the parameters: 142778012163523"), amber: why a substitute comes out ("No seed in the parameters — fallback_seed = 42 comes out"), grey: a note. Without Draftsman the stock tooltip is shown (English).
Settings
All settings are in ComfyUI: Settings → Rigstools.
PicoTeka
- Use the gallery — on by default. Off: no gallery button and no indexing, the nodes work as before.
- Auto refresh — how often the open gallery looks for pictures added outside ComfyUI runs: 10 s by default; 30 s, 60 s or off for big or network folders. After each finished run it looks at once anyway.
- Allow deleting and moving files from other computers — when ComfyUI is open on the network (started with
--listen). Off by default: files are deleted and moved from this computer only.
Civitai
- Look models up on Civitai by their hash — for the "Civitai resources" block of Save image (see above). Off by default.
- Allow posting from PicoTeka to Civitai — off by default. When off: there are no Publish to Civitai buttons, and nothing is sent to Civitai, not even requests to check the API key.
- API key — for posting from PicoTeka. Create it at civitai.com: Account settings → API Keys → Add API key, paste
it into the field and press Enter: the key is checked on Civitai, and the mark before the field shows: Key
accepted (green), Key rejected (red), Key not set or Key not checked (yellow — e.g. no connection, or
posting to Civitai is not allowed); the account name is in its tooltip. The field only takes the key: it is not kept
in the ComfyUI settings (which every page opening ComfyUI receives) but by the ComfyUI server, in
<ComfyUI user folder>/rigstools/civitai_key, and is never shown or sent back; the trash button removes it. It can be set from this computer only. When theCIVITAI_API_KEYenvironment variable is set by hand, it takes priority and is used to talk to Civitai.
Debug
-
Write details of the nodes' work to the console — to the ComfyUI console:
- Save image, on each save: the files, the passes in the order they run, where the Hires fields come from, every value with its source, the LoRA and the warnings;
- Load image with parameters, Parameters extractor and Metadata extractor: what was read from the file (defaults and typed values marked), whether the model was found;
- Color correction: what the automatic steps measured and changed (in auto mode, also the strengths it chose);
- PicoTeka: the gallery index summary (“Gallery index: …”) after each scan; without Debug it is written only when ComfyUI starts, on Rescan and when a folder is added.
Loading a picture into the panel, step by step, goes to the browser console.
Language follows the ComfyUI Comfy.Locale setting: ru gives Russian, any other locale falls back to English.
The panels, dialogs, help, messages and, with Draftsman, the output tooltips switch immediately; setting names switch
after a ComfyUI restart. Node names, input and widget names, their stock tooltips and the console log stay in English.
Environment variables: RIGSTOOLS_LOGLEVEL — the Python logging level (default 20 = INFO), RIGSTOOLS_INDENT —
the JSON indent of the outputs (default 2). The old CRYSTOOLS_* names still work.
Limitations
- Nodes 2.0 (Vue nodes), the new node look of ComfyUI, is not supported yet. The panels, previews, output marks and the Save image block are drawn on the classic LiteGraph canvas, so with Nodes 2.0 turned on they are not shown or do not work as intended. Keep Nodes 2.0 off in the ComfyUI settings. Support is planned for one of the next versions.
License
MIT — see LICENSE. Based on ComfyUI-Crystools (MIT, © Crystian).
- The icon and the banner: the Noto Emoji "alembic" (Apache 2.0).
- The Settings sidebar icon and the gallery icons: Lucide (ISC); the GitHub mark in the gallery: Simple Icons (CC0).
More in THIRD_PARTY_NOTICES.md.