image_size_keeps_canvas_edges_opaque asserted the old behaviour (a scaled
full selection after Image Size). Image Size now drops it (#13856); the
corner check moves to resample_doc, which the Crop tool's W x H x
Resolution mode still uses.
Resampling to a new pixel size now drops the active selection instead of
keeping a scaled copy, as the reference application does. Undo restores
the old size and selection in one step. A Fit Image that changes nothing
and a resolution-only Image Size keep the selection. The shared
resample_doc helper (Crop tool) is unchanged.
paths_to_ai now writes one Path_Begin/Path_End block per path, one *u/*U group per subpath with its combine note and 1 XR, and no path name. A Join subpath takes the note of its component.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
bake_cube_layers now takes the document's sample type, writes the reference
comment layout around the header, and rounds 8- and 16-bit values to
multiples of 1/32768. 32-bit values stay unquantised.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
- Without the AI-MCP flag plain `photocraft-cli mcp` is headless as before: a
Control Port saved before the agents switch no longer makes it look for the
app, start it or apply When PhotoCraft Is Closed. Test in
mcp_without_consent_works_headless (fails without the gate).
- `prefs::read_integrations_section` (migrate + lenient read) is shared by the
app's launch read and `photocraft-cli mcp`: one bad value resets only itself,
so a saved "error" closed-app choice no longer falls back to Launch in the CLI.
Replaces the app's hand-written per-field reader. Test in
integrations_come_from_the_saved_preferences_or_default (fails without it).
- docs/development.md: the headless client examples pass --headless.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Clippy's chunks_exact_to_as_chunks lint rejects chunks_exact_mut(4) under
-D warnings; main uses as_chunks_mut for the same pattern.
Co-Authored-By: mlo0352 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A group has no pixels of its own, so with Sample All Layers off Quick
Selection fell back to the composite and a click selected a whole shape
from the layers inside. The reference application selects only the brush
disc there, as on a flat area. Quick Selection now reads a flat image for a
group (not an artboard) when Sample All Layers is off; with it on, and for
an adjustment layer, it reads the composite as before.
With a base bent toward the tip, the shaft stopped where the bent base
crosses its edge and left the wedge up to the base's middle unfilled. The
shaft's end now follows the bent base to its middle, which fills the wedge
without reaching past the head's flanks, matching the reference outline.
shape.create / shape.edit round arrowConcavity to a whole percent, as the
gear and Properties fields do.
Concavity is a whole number from -50 % to 50 % of the head's length, as in
Photoshop. A negative value bends the head's base away from the tip, and the
shaft now ends where the bent base crosses the shaft's edge. Values outside
the range (documents, PSDs and settings saved with the old 0..100 range) are
clamped to the nearest end instead of failing.
- vector: arrow_line bends the base by concavity x length, both directions
- engine: shape.create / shape.edit take arrowConcavity in -50..=50
- io: PSD import keeps negative concavity, clamped to -50..50
- ui: gear and Properties Concavity are whole-number fields with the
"Closest value inserted" alert; the gear menu stays open on clicks inside
so a value can be typed
The colour and opacity bakes sample the same 97 positions, but apply_opacity cut every interval
into four (385 stops), and paint_gradient scans the stops for every pixel. Multiply the alpha in
at each shared position instead; other positions still go through apply_opacity. Raised by
CodeRabbit.
Co-Authored-By: x-labb <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The hostile-radii test now tells the command guard's internal error from a graceful one, and a new test sends hostile boxes. The vector tests pin zero-size, sliver and tall thin boxes. The format tests cover both fields present, a field holding another kind, and junk in triangle_live.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Fable 5.2 briefed; Sonnet 5.5 wrote at medium
A new live shape kind, LiveShape::Triangle { rect, corner_radius }, draws an isosceles triangle that fills the dragged box (apex at the top centre, then bottom right, bottom left). The engine no longer turns a triangle into an inscribed 3-sided polygon. Triangles saved before this are 3-sided polygons and keep that geometry.
The .pcraft manifest stores a live triangle in a new optional triangle_live field beside live (as arrow_live does), so older builds open the file and show the saved path. PSD export writes no vogk for a triangle, as for polygons.
Arms the new kind forces: live_kind, the axis-aligned transform, params, the corner radius widgets and the Properties Shape section (Corner radius only). Shift keeps today's equilateral triangle, sent as its tight box.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Fable 5.2 briefed; Sonnet 5.5 wrote at medium
* Rasterize: undo the layers already converted when a later step fails (#4974)
* Rasterize: roll back through the shared compound helper when a later layer fails (#4974)
* Test that a failed Rasterize keeps a clean document clean (#4974)
* Rasterize: undo the layers already converted when a later step fails, and refuse before a step starts when there is nothing to do (#4974)
* Format the rasterize rollback tests
* Rasterize: cover the All Layers and Layer Style refusals through the real commands
* Rasterize: name the history step after the variant, and test the rollback through the real commands (#4974)
---------
Co-authored-by: skylar <[email protected]>