mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-28 02:02:04 +01:00
* Content-Aware Scale: transform box with live preview (#3096) Edit > Content-Aware Scale opened a parameter dialog. Photoshop has no dialog: it puts a scale-only transform box on the layer (or the selection's bounds). The menu now opens that box. - The box reuses Free Transform. Corner and edge drags scale and an inside drag moves; dragging outside does not rotate, Cmd does not skew or distort, and the Warp switch and the Transform modes are off. - The options bar shows X/Y and W/H, then Amount, Protect (an alpha channel) and Protect skin tones. - The live preview runs the command's own carving (ContentAwareScalePreview) on a 384 px copy on a worker thread. A run for a box that has changed since is cancelled after 150 ms, and the latest result is drawn through the box. - Enter runs edit.contentAwareScale with the box's size and its new x/y params as one history step; Esc cancels. - With params the command still runs directly. Scorecard TOOL-214-7: done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Content-Aware Move's transform box: set the new content_aware field #3095 (Transform On Drop) builds a TransformSession by hand; this PR adds content_aware to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>