Skip to content

Image Studio: tool icons and an interactive crop - #467

Merged
lightningpixel merged 8 commits into
devfrom
feat/image-studio-tools
Nov 18, 2026
Merged

lightningpixel merged 8 commits into
devfrom
feat/image-studio-tools

Conversation

@lightningpixel

Copy link
Copy Markdown
Owner

Summary

  • The Image Studio header no longer shows every op's sliders: each image op is a tool icon, and the active tool's options appear in a bar under the header (Esc or a second click closes it). Unknown ops still work with a fallback icon and their params_schema fields.
  • Crop is now done by dragging a frame on the image, like Windows Photos: dimmed outside, 8 handles, drag inside to move, rule-of-thirds grid while dragging, Free / 1:1 / Original ratios, size in pixels, Reset / Cancel / Apply. Enter applies, Esc cancels. Cropping a crop starts again from its source, as before.
  • Backend: the crop op takes fractional edge percentages (0–100, step 0.1) instead of whole ones capped at 45, and refuses an empty frame.
  • Add image and Show in folder become icon buttons.

Design: docs/superpowers/specs/2026-11-18-image-studio-tools-design.md

Test plan

  • npm run lint, npm run build
  • npm run test:node (new cropGeometry and isTextField/isInteractive tests)
  • unittest tests.test_image_ops_framing tests.test_image_ops_registry
  • Manual: drag edges, corners and the frame; switch ratios; resize the window mid-crop; Apply adds the expected size to the history; Esc cancels
  • Manual: Remove background (including the one-time download) and Auto-frame from the options bar

Known minor issues

  • While cropping, a transparent image shows on a dark background instead of the checkerboard.
  • Resizing the window during a drag makes the frame jump slightly.
  • The frame can't be moved with the keyboard.

@lightningpixel
lightningpixel merged commit 08b19f6 into dev Nov 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant