1 Commits
Author SHA1 Message Date
Superside ComfyUI NodesandClaude Sonnet 5 7fbdcbf284 Add Normalize Product and Resize (Long Side) nodes; improve Manual Detail Sheet
Normalize Product: centers/scales a catalogue product into a consistent
frame so a fixed set of detail crops lands on the same spot across every
SKU. Default "keep resolution (pad)" mode crops to the product and pads
with the margin at native resolution (no downscaling / no quality loss);
an optional "fixed canvas (scale)" mode targets an exact WxH. Detects the
product against the light background locally - no AI, no API key.

Resize (Long Side): scales an image so its longest side hits a target,
preserving aspect ratio, with an only-downscale toggle. Outputs the image
plus the resulting width/height.

Manual Detail Sheet improvements:
- external numbered on/off buttons (replacing the fiddly in-canvas toggle
  dot); only active boxes are drawn, so toggling never fights dragging
- boxes are now true 1:1 squares in image pixels (widget + server-side)
- live per-box crop-preview thumbnails so you can confirm each detail is
  inside its box before running
- the node now sends the exact image it received back to its widget on
  execute, so it can show/box an upstream-processed image (e.g. from
  Normalize Product) that has no live thumbnail of its own

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-13 14:33:45 -04:00