The panel lays out as the reference application's: three radio rows with their dropdowns, the Dither
checkbox, and Data Order / Table Order radio pairs while a .cube is the LUT. The layer keeps the orders its
.cube was read in (LutSource), and an edit naming only an order reads the kept file again in the new
orders. The Abstract and Device Link rows ask for an ICC profile and say that applying one is not supported
yet (#14428), or that the file is the wrong kind of profile; the layer keeps its LUT.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The PR snapped shapes with a per-edge heuristic (pixel_align.rs, dash-cap tie
rules, a PSD coordinate-frame field threaded through engine, format and caches),
defaulted the option to off, and renamed the existing Rectangle/Triangle
"Align Edges" checkbox to "Snap Bounding Box" next to a second checkbox.
The reference application fits the whole shape at render time: the bounds of
what it paints (fill, or the stroke's outer edge) get a whole-pixel left/top
(a half rounds up) and a whole width/height, and the path is translated and
scaled into that box. Fill and stroke take one transform; curves stay
antialiased; inner edges of several subpaths are not snapped.
- photocraft_vector::align_edges implements that rule; CompiledShape applies it,
so caches, the compositor, previews and extents agree; the fill/stroke split
under layer effects starts from the whole shape's transform.
- Removed pixel_align.rs, the rasterizer helpers it needed, the document-space
drag preview and psd_coordinate_frame (rounding the bounds absorbs the PSD
quantization it was for).
- One Align Edges checkbox (ToolOptions::align_edges, stored and scripted as
useAlignedRendering, older align_edges still read) on every shape tool and the
Pen, on by default and after Reset Tool; it snaps the drag and sets the layer.
- PSD sn2P: written as 1 when on and left out when off, as the reference saves it.
- Dropped the dead path.set param, moved the control-protocol paragraph,
rewrote docs/pixel-aligned-strokes.md, reverted the unrelated raw, font,
Cargo and test-harness changes.
- Tests reproduce the measured cases (rectangles at .25/.4/.5/.6/.75, ellipse
extremes and curve symmetry, 1/2/3 px strokes, rotated rect, Pen triangle,
two subpaths, toggle off, stored path unchanged, one checkbox, Reset Tool).
Co-Authored-By: superplay2021 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Edit > Define Pattern composites the area in the document's pixel format, which stores an Indexed Color document expanded to RGB. Nothing on Pattern said where the tile came from, so a pattern taken from an Indexed image was indistinguishable from an RGB one, and a tool that cares about the difference had nothing to read.
The new field names the source mode. The pixels, the id and what the pattern library lists stay as they were. A pattern read from a file records no source: a .pat or PSD block says what its pixels are, not which document they came from. The library index and .pcraft carry the field, so a defined pattern keeps its source across a restart or a save; files written before it read as no source.
Keeps both test modules in crates/format/tests/it/main.rs: main's camera_raw_roundtrip and this PR's channel_mixer_cmyk.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* test(raw): pin pre-cutover Camera Raw SmartFilter and filter baseline (#587)
* test(format): avoid json! macro recursion limit in camera_raw_roundtrip (#587)
* test(format): wrap SmartSource::Embedded bytes in Arc (#587)
* test(engine): use select.deselect in camera_raw_baseline_pin (#587)
* test(raw): capture legacy RAW Open and Camera Raw Filter pixel baselines (#587)
* test(raw): lock Camera Raw Filter baseline pixels and capture RAW Open values (#587)
* test(io): lock legacy RAW Open baseline pixels (#587)
* test(io): capture RAW Open camera WB legacy baseline pixels (#587)
* test(io): lock RAW Open camera WB legacy baseline pixels (#587)
Keep actual format compatibility as the decision; no format bump or file migration. Shared build override identifies the writer; bounded escaped diagnostics retain ordinary full tags. Three real manifest regressions authored, unrun; applicable crate validation pending.
Resolve the conflict in crates/engine/src/adjust_params.rs: keep this
branch's generic mixer_row (RGB rows of 4, ink rows of 5) and main's
rounding to whole percentages before clamping (#14414).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Document.layers is a LayerTree that builds an id index on first lookup and drops it on any mutable access. Layer lookups and selected_layers use the index instead of walking the document.
Each removed variant takes the same branch as one that stays, or is covered without the app or
oracle cost by a named lower-level test; the commit's comments say which for every test.
ui-egui: floating-document zoom (10 frames after Enter, not 60), Wide Angle (one depth per mode,
alpha kept), Brush panel sections (only those Brush Settings draws; Brushes ignores the section),
Camera Raw GPU (8 and 32 bits), enable rules (one app per world, a copied style for Paste only),
Content-Aware Move preview (selection just past the coarse budget, smaller canvas).
algo/compose/engine/gpu/format: Pixelate (Lab, cell 100, seed 37, tile 1), box blurs (Gaussian
40), Smart Blur (multichannel layouts cover every arm; Low and High), FFT sharpen gate (one
depth), panorama batching (budgets at every split instead of a 47-step sweep), bevel and chisel
threads (2 and 16), fused tone tiles (256 x 256, the U16 table threshold), live dabs (8 and 32
bits), Camera Raw GPU sizes (1600 x 240 wide case; the proxy-size per-pixel run lives in the
clarity test), directory bundle (two modes; zip_cases has the matrix).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each crate's top-level tests/*.rs files become modules of tests/it/main.rs, and a new xtask check (test-binaries) refuses a new single-file test binary.
main (#15449) moved the adjustment editors onto the craft UI framework and deleted basic.rs, which held this PR's CMYK Channel Mixer editor. The framework ChannelMixer has red, green and blue rows only, so a CMYK mixer is now kept out of it: values::from_params refuses a mixer with ink keys (CMYK_MIXER_UNAVAILABLE), the Properties panel shows that message and edits nothing, and Image > Adjustments > Channel Mixer refuses to open in a CMYK document with the same reason. A CMYK editor in craft-libs is the follow-up.
ui_tests.rs keeps main's tests; the test of the deleted egui editor is replaced by cmyk_channel_mixer_is_kept_out_of_the_rgb_editor, and the every-kind Properties test expects the refusal for a CMYK mixer. The Tokens::mixer_rgb/mixer_ink fields added for the deleted editor are dropped (no user left).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cap EOF and growth probe reads at the normalized chunk size. Add a bounded-reader regression covering zero, short and full probe sizes and missing, partial and exact length hints.
Reconcile contributor #14595 fixes with #15036: retain bounded SVG refusal reclassification and shared preflight, distinguish corrupt reads from save I/O failures, preserve RAW calibration and stricter regression cases. Keep newer descendant shared pin and main GPU/test support fixes. Hosted validation required.
Indexed Color documents store RGB pixels, so Color Table found each
pixel's index again as the nearest entry, and entries of one colour
lost their own pixels (#14342). The document now keeps each pixel's
index (Document::color_indices) where it is known: recorded when a
palette PNG is opened, by Image > Mode > Indexed Color and by Color
Table itself. Color Table uses it while the layer still has exactly the
recorded tiles; after any other change it maps by nearest colour as
before. A known index past a shrunk table stays black until the table
grows back over it.
The native format saves the indices only while they hold for the layer
as saved, and pairs them with the loaded layer on open.
- refuse a symlinked or non-file manifest.json before any object is written
(craft-pcraft-bundle only refuses it when it publishes the manifest)
- a directory save reports craft-pcraft-bundle's Io errors as I/O, not as a
corrupt bundle (a locked manifest said "corrupt .pcraft bundle")
- a full_composite member naming another entry refuses the bundle, as
craft-pcraft-format already does for thumbnail and composite
- the permission tests make the tiles/blobs/composite folders they restrict;
an empty document's save no longer creates them
Co-Authored-By: Claude Opus 5.5 <[email protected]>
craft-libs' bundle reader returns Error::Zip(EntryTooLarge) for a member past its read bound; map it through zip::map_read_error so it surfaces as LimitExceeded, not Corrupt. The directory cleanup test now creates tiles/ and blobs/ itself, since an empty document's save no longer makes them.
A PSD gradient fill (GdFl) or Gradient Overlay (GrFl) with Smoothness
above 0, a method other than Classic or Lab stops (an overlay also with
midpoints off the middle) keeps Photoshop's own gradient next to the
dense stops baked from it: colour stops, midpoints, Smoothness, method
and opacity stops, in the GradientInterpolation record the overlay
already had (now with midpoints and opacity stops) and in a new
Fill::Gradient `interpolation` field. The compositors still render the
baked stops.
The Properties gradient editor, the on-canvas widget and the Layer
Style page show and edit those stops; gradient.fill.set/stop edit them
and bake again (geometry edits leave the bake exact), and
gradient.fill.set takes `method` and `smoothness`. A preset replaces
the record. A PSD save writes the kept gradient (Intr, the method
enum) while the render stops still match it, so read, write, read
keeps it; .pcraft keeps it too and older files still load.