Compare commits

...
4 Commits
Author SHA1 Message Date
ausboss 07bb4d792b Merge pull request #417 from ausboss/release/v2.28.1
Release 2.28.1
2026-11-25 08:17:59 -06:00
ausboss 34995f9fdb Release 2.28.1 2026-11-25 08:17:05 -06:00
ausboss 8e00fd07fc Merge remote-tracking branch 'origin/fix/card-rows-reach' into release/v2.28.1 2026-11-25 08:15:17 -06:00
ausboss eb1be4f36c Card rows: Image Resize shows Fit only where it is read; Photo Camera's More opens
Image Resize showed Fit, and Fill under pad, for every target, but the node
fits every target except Width x height, so those rows did nothing there.
They now show only for Width x height (js/shared/image_resize_rows.mjs).

Photo Camera folded Crop margin and 360 width into a group with no header
row to open it, so they could not be reached. It gets its More header, and
a test fails on any card that folds rows into a group with no header.
2026-11-24 10:44:16 -06:00
8 changed files with 75 additions and 7 deletions
+10
View File
@@ -2,6 +2,16 @@
All notable changes to ComfyUI-AusBoss are documented here.
## 2.28.1 - 2026-11-25
- **Image Resize 🆎 shows Fit only when it is used.** Fit, and Fill under
pad, now show only for a Width × height target. The other targets take
their shape from the picture and always fit it, so those rows did
nothing there.
- **Photo Camera 🆎's More fold opens.** Crop margin and 360 width sat in
a fold with no header, so nothing could open them. The card now has a
More row that shows them.
## 2.28.0 - 2026-11-24
- **New node: Photo Camera 🆎.** It works out the camera your photo was
+3 -3
View File
@@ -1,9 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="105" height="20" role="img" aria-label="release: v2.28.0">
<title>release: v2.28.0</title>
<svg xmlns="http://www.w3.org/2000/svg" width="105" height="20" role="img" aria-label="release: v2.28.1">
<title>release: v2.28.1</title>
<path fill="#555" d="M0 0h48v20H0z"/>
<path fill="#00b4aa" d="M48 0h57v20H48z"/>
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="24" y="14">release</text>
<text x="76.5" y="14">v2.28.0</text>
<text x="76.5" y="14">v2.28.1</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 425 B

After

Width:  |  Height:  |  Size: 425 B

+14
View File
@@ -0,0 +1,14 @@
// Image Resize 🆎: which card rows the node reads for the values set. No DOM
// and no ComfyUI imports, so node:test covers it.
// Only a width × height box can disagree with the picture's shape; every other
// target takes its shape from the picture, and the node always fits it
// (nodes/_resize_helpers.py). So Fit is only read in width × height.
export function readsFit(values) {
return values?.target_mode === "width+height";
}
// The fill colour paints pad's bars, so it is read only where pad is.
export function readsFill(values) {
return readsFit(values) && values?.keep_proportion === "pad";
}
+1 -1
View File
@@ -9,7 +9,7 @@ import { app } from "../../../scripts/app.js";
// Must match `version` in pyproject.toml — scripts/release_preflight.py
// enforces it. The backend serves its copy at /ausboss/pack_version; a
// mismatch means the browser cached JavaScript from an older install.
export const AUSBOSS_JS_VERSION = "2.28.0";
export const AUSBOSS_JS_VERSION = "2.28.1";
export const BRAND = "#00b4aa"; // AusBoss teal — keep node accents consistent.
export const BRAND_DARK = "#007f78";
+3 -2
View File
@@ -19,6 +19,7 @@ import { mountWidgetCard } from "../shared/widget_card.mjs";
import { FONT_UI, THEME } from "../shared/theme.mjs";
import { SOCKETLESS_CHOICE, SOCKETLESS_TEXT, commitWidgetValue, markSocketless, resetUnknownValues } from "../shared/widget_card_math.mjs";
import { mediaViewQuery } from "../shared/media_list.mjs";
import { readsFill, readsFit } from "../shared/image_resize_rows.mjs";
import { gearIconSvg, openSettingsMenu } from "../shared/settings_menu.mjs";
import { SEAM_MENU, SEAM_MUTE_TITLES, isBlendIn, seamCornerReserve } from "../shared/stitch_seam.mjs";
import { NUMBER_LOOK_MENU, TEXT_LOOK_MENU, setTextLook, textLook, textLookCornerReserve } from "../shared/text_look.mjs";
@@ -138,8 +139,8 @@ const CARDS = {
{ widget: "edge_length", label: "Edge", suffix: "px", when: isMode("target_mode", "longest_edge", "shortest_edge") },
{ widget: "megapixels", label: "Budget", suffix: "MP", when: isMode("target_mode", "megapixels") },
{ widget: "scale_factor", label: "Scale", suffix: "×", when: isMode("target_mode", "scale_factor") },
{ widget: "keep_proportion", label: "Fit", kind: "segment", labels: { cover_crop: "cover" } },
{ widget: "fill_color", label: "Fill", kind: "color", when: isMode("keep_proportion", "pad") },
{ widget: "keep_proportion", label: "Fit", kind: "segment", labels: { cover_crop: "cover" }, when: readsFit },
{ widget: "fill_color", label: "Fill", kind: "color", when: readsFill },
{ widget: "divisible_by", label: "Multiple" },
{ widget: "interpolation", label: "Filter", kind: "select" },
],
+1 -1
View File
@@ -3,7 +3,7 @@ name = "ausboss-nodes"
# Manager/registry search matches against this text, so it names the actual
# nodes instead of describing the collection abstractly.
description = "ComfyUI-AusBoss (AusBoss nodes): image and video nodes: Image and Video Crop + Rotate + Pad, Load Image, Load Image + Pad, Image Folder, Image Resize, Align Image, Image Size, Color Match, Image Compare A/B, Image Toolbox, Realign to Source (experimental), Save Image (PNG, WebP/JXL, captions), Load Video, Load Audio, Save Video, Select Frame, Frame Interpolate, Mask Refine, Mask by Name and Mask by Touch, LaMa Inpaint, Crop For Inpaint, Stitch Inpaint, Tiled Upscale and Tiled Upscale Stitch, FlashVSR Upscale, Edit Lock and Edit Lock Restore, LoRA Loader, Krea 2 Encode and Outpaint Model Patch, Latent Size, Layout Boxes, Seed, Select Every Nth, Split Batch, Merge Batches, Text, Text Lines, Prompt Variations, H3 Prompt Writer, Integer, Float, Math Expression, Show Text, Free Memory, Workflow Note, Workflow Note Tile, Callout, Callout Tile, Workflow Switches, Run Timer, Step Preview, Pause for Shot, and Photo Camera. Examples for Qwen Image 2.1, Krea 2, Klein 9B and LTX 2.3."
version = "2.28.0"
version = "2.28.1"
# comfy-cli serializes this to JSON verbatim, so `file` publishes the literal
# string {"file": "LICENSE"} to the registry listing. `text` puts a readable
# name there instead. Both forms are supported; the LICENSE file is unchanged.
+22
View File
@@ -0,0 +1,22 @@
// Image Resize's card shows Fit and Fill only where the node reads them.
import { test } from "node:test";
import assert from "node:assert/strict";
import { readsFill, readsFit } from "../js/shared/image_resize_rows.mjs";
const MODES = ["width+height", "longest_edge", "shortest_edge", "megapixels", "scale_factor"];
const FITS = ["stretch", "fit", "cover_crop", "pad"];
test("Fit shows only for a width × height box, the one target the node fits", () => {
for (const mode of MODES) {
assert.equal(readsFit({ target_mode: mode }), mode === "width+height", mode);
}
});
test("Fill shows only where pad is read", () => {
for (const mode of MODES) {
for (const fit of FITS) {
const expected = mode === "width+height" && fit === "pad";
assert.equal(readsFill({ target_mode: mode, keep_proportion: fit }), expected, `${mode} ${fit}`);
}
}
});
+21
View File
@@ -441,3 +441,24 @@ test("a lifted socket loses the row position the frontend stamped on it", () =>
assert.equal("pos" in loose, false);
assert.equal(loose.widget, undefined);
});
// A row folded into a group shows only while that group is open, and only a
// header row ({ group, label }) opens it. A card that folds rows away without
// one leaves them out of reach (Photo Camera's Crop margin and 360 width).
test("every group a card folds rows into has a header that opens it", () => {
const source = readFileSync(join(ROOT, "js", "widget_cards", "index.js"), "utf-8");
const ids = [...source.matchAll(/\n {2}(AUSBOSS_NODES_\w+): \{/g)].map((match) => match[1]);
assert.ok(ids.length > 10, "no card entries found");
for (const id of ids) {
const lines = cardEntry(id).split("\n");
const headers = new Set();
const folded = new Set();
for (const line of lines) {
const group = line.match(/\bgroup: "([^"]+)"/)?.[1];
if (!group) continue;
if (/\b(widget|pair): /.test(line)) folded.add(group);
else headers.add(group);
}
for (const group of folded) assert.ok(headers.has(group), `${id} folds rows into "${group}" with no header row to open it`);
}
});