* Bound PSD import pixel storage before decoding
* Include ZIP inflater workspace in PSD preflight
* PSD import: budget unknown-mode layers, stop after a fatal layer error, keep best-effort for non-allocation limits (#8593 review)
Importing an .abr or .grd whose name matched an existing group silently
deleted that group's user presets (edited or moved-in ones included); the
preset libraries are outside document history, so it could not be undone.
- brush.presets.importAbr / gradient.presets.importGrd: `replace` now
defaults to false; a taken group name imports beside it as "Kit (2)",
"Kit (3)"…, and the result's `group` names the one it landed in.
- UI: when the group already holds the user's presets, a prompt asks
Import as New Group (default) / Replace (can't be undone) / Cancel.
Agents drive it with ui.dialog.set {"choice":"replace"} / confirm / cancel.
- The status bar names the group the file landed in.
Fixes#10640
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Filter Gallery steps (GEfc with the effect in GEfk, or the effect's own
event) map every effect to filter.gallery.<effect>, not only Spatter:
each key in recorded order, out-of-range values clamped and missing
keys given Photoshop's defaults, enumerations, Invert and Neon Glow's
colour mapped both ways. The table is generated from the event
reference's Group A; every integer range and default matches the
effects'. Glass maps the Frosted and Canvas textures the reference
gives codes for. A setting the event cannot hold refuses the step.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
De-Interlace (Dntr), NTSC Colors (NTSC), HSB/HSL (HsbP), Custom (Cstm),
Average (Avrg) and Remove Black / White Matte (RmvB/RmvW) load as their
commands, play, and save back with the same keys. Missing keys take
Photoshop's defaults; a Custom matrix that is not 5 x 5 keeps the
Photoshop step. Replace Color and the direct Gradient Map (GrMp) are
still kept verbatim.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Split Channels (SplC), Merge Spot Channel (MSpt), Trap (Trap) and Match
Color without a source (matchColor, noReference) load as channel.split,
channel.mergeSpot, image.trap and image.adjustments.matchColor and save
back with the keys Photoshop records. The split's recorded documentIDs
belong to its run and are neither replayed nor written; Trap's width is
clamped to 32767 px; Match Color takes Photoshop's defaults. Steps the
events cannot carry (a split keeping its original, a named spot
channel, a Match Color source or option) are refused on export.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pinch, Polar Coordinates, Spherize, Twirl, Wave and ZigZag steps load
as filter.distort.*, play, and save back with every key in recorded
order. Out-of-range values are clamped as Photoshop clamps them and
missing keys take Photoshop's defaults (Wave's undefined areas are
Repeat Edge Pixels). A Wave scaled below 100 % stays a Photoshop step,
as the command has no scale. Shear is still kept verbatim: its curve
points need a step recorded through its dialog.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Oil Paint (oilPaint), Smart Sharpen (smartSharpen), Focus Area
(focusMask), Select Sky (selectSky) and Remove Background
(removeBackground), recorded by string ID, load as their commands and
save back with the keys and defaults Photoshop records. Oil Paint's and
Select Sky's Photoshop defaults are written out where they differ from
the commands'. Smart Sharpen maps the legacy Lens Blur form with no
noise reduction; other forms stay Photoshop steps. Settings the events
cannot carry refuse the step on export.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The supported table read the command list of the next entry for an event whose
list is a constant: Filter Gallery (`GEfc`) maps to `filter.gallery.spatter`, not
Shadows/Highlights. The table now resolves constants and reads each entry alone.
- Steps measured in a prepared document (Fade, Replace Color, Trap, selection
combinations, ...) show the example values that were sent, labelled as such, not
as factory defaults.
- Mosaic cell size: write `#Pxl`, read a value without a unit as pixels.
- Custom: no factory matrix; the test matrix is no longer shown as defaults.
- Intro: kept steps with no document effect are imported switched off and skipped.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/atn.md lists the 117 events PhotoCraft maps today and, for 101 events it does
not map yet, every key the step carries in recorded order, with type, unit, factory
default, exact range and accepted enum values, measured in the reference application.
An implementation needs no further checks there. Linked from file-format-parity.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The option's doc on ExportOptions, the command spec strings, the
control-protocol doc.save row and the parity row all said `false` writes
the image only; a Multichannel document has no image, so the exporter
refuses it, and the docs now say so. XmpEmbed::None omits the document's
own packet and free-form text, not the metadata a format writes about the
file itself, such as the PDF spot-plate description.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Conflicts were the two doc headers and the parity sections and revision
rows: both sides kept, the spot-plate entries first.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Some lossy type 2 NEFs store a split row at byte 562 of maker note 0x0096.
They were refused ("lossy after split") and opened as the camera's preview.
The 11 such CC0 raw.pixls.us files come from the D3400, D5, D5000, D5200,
D5500, D5600, D7000, Nikon 1 J5 and Z 6_2.
Decode them following the rule LightCraft derived by black-box analysis of
those 11 files (storytold/lightcraft#633), the same route the Huffman tables
took. Rows above the split are Huffman coded as before. From the split row on,
every pixel is one MSB-first word of bits - 4 bits: a prefix code for the
difference category followed by the top bits of the T.81 additional bits,
dequantised to the centre of the kept bin (fixed_words, ported from
LightCraft's fixed_word_table), with the same predictor and an unclamped
running value. The section ends the strip: whole rows (up to 4 more than the
image), then 0-7 one-bits.
A split file that fails to decode for any reason (a section that does not end
the strip, the all-ones word, truncation, size limits, a split row past the
image, a curve long enough to cover byte 562) stays unsupported, so it keeps
the embedded-preview fallback it had before. Apart from the all-ones word and
the padding, the content of the fixed-rate section is not validated: a damaged
word inside a well-formed section decodes without an error, as in LightCraft.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Retain the expanded painting-menu limitations and refresh existing localization measurements from the merged tree.
Co-Authored-By: Codex <[email protected]>
Re-measured i18n coverage (2,208 keys) and re-verified the conflicting parity rows against the code.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The plates_of doc and the file-format-parity PDF row still said solidity
"is not written"; since the XMP description it is carried as
pcsp:solidity. Both now say it does not change the plate image or tint
transform and that only the XMP description carries it.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
The catalog's /Metadata packet (the document's own, when it has one)
gains an rdf:Description under
http://ns.getartcraft.com/photocraft/spot-plates/1.0/ (pcsp): an rdf:Seq
in paint order with each plate's index, name (the Separation colorant
name), ink colour as Lab D50 and sRGB hex, and solidity 0-100. A converter
can rebuild Photoshop spot channels with the real ink colour, which the
Separation colour space's CMYK alternate cannot carry. The plates are
unchanged (Ghostscript tiffsep output pixel-identical). A document's XMP
now travels into its PDF as into the other flat formats (XmpEmbed).
Schema in docs/file-format-parity.md.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Save As / Save a Copy / file.saveACopy / doc.save to .pdf write every
spot channel as an 8-bit Flate image XObject in a
[/Separation /<channel name> /DeviceCMYK <tint transform>] colour space,
painted after the flattened image in channel order with overprint on
(/OP true /op true), so a RIP or Ghostscript's tiffsep/psdcmyk keeps each
one as a named plate. 1 = solid ink, as the document stores it; the
alternate is the ink colour separated to CMYK (preview only). A
Multichannel document saves as its plates alone (an alpha-type channel as
the black ink the composite shows, 1 - value). Each plate carries a 1-bit
stencil mask so viewers without overprint preview still show every plate
(a colour-key /Mask range renders blank in Quartz). No marks, labels,
halftone screens or transparency. "pdfSpotPlates": false on scripted
saves writes the image only.
Tests: 5 new io pdf tests (structure, overprint and order, polarity,
Multichannel, name escaping, stencil bits, opt-out, 16-bit) and an engine
save_a_copy test for the param. Docs: file-format-parity, gaps G10,
control-protocol.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Photoshop's arrow keys also nudge a selected path segment with Direct
Selection, which PhotoCraft does not do yet, so that row is partial and
G5 keeps segment nudge in its missing list. The Smart Guides row now
also names the missing distances during an ordinary Move drag.
Six dialogs (Create Rectangle/Polygon, Fill and its Blending section, Stroke,
Channel Options / Layer Mask Display Options / New Spot Channel, New Snapshot)
and the Document Properties panel each carried a private label() that painted
right-aligned text into a fixed-width column with nothing bounding it on the
left, so a longer translation ran out of the dialog.
They now share widgets::label_column_width (measure the dialog's labels in the
current language, clamped between the old English width and a per-dialog cap
that leaves room for the fields) and widgets::column_label (right-aligned,
elided with a hover tooltip past the column). Fill and Stroke measure the
Blending section's labels too, so both sections share one column.
Same design as the Image Size / Canvas Size fix in #9636 (not merged); that
PR's private sizing::label/label_col can move onto these helpers once it lands.
Tests: widgets::tests::column_label_stays_inside_its_column and
dialogs::label_column_tests::translated_labels_stay_inside_the_dialog (every
dialog body in every registered language; no text left of the dialog).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve the view_cmds/dispatch.rs conflict: keep main's Full Screen Mode
availability rules (#9349) and add this branch's rotateLeft/rotateRight to the
document-required list.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>