Skip to content

Add editable spot ink channels and PSD separations - #164

Merged
IAmJSD merged 11 commits into
mainfrom
feat/spot-colour
Sep 20, 2026
Merged

IAmJSD merged 11 commits into
mainfrom
feat/spot-colour

Conversation

@IAmJSD

@IAmJSD IAmJSD commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

Add document-wide spot ink plates with scalar floating-point coverage, independent of layer/process color and alpha. The Color panel now creates, selects, renames, hides and deletes spots; Brush/Pencil/Eraser, selection-aware fill/clear and grayscale copy/cut/paste edit the selected plate with undo. Native and browser canvas views show individual separations or a display-only overprint simulation with editable color and solidity.

PSD/PSB retain 8/16/32-bit spot and ordinary alpha planes, native names/IDs/DisplayInfo/alternate spot colors, and untouched CMYK process data. Original channel metadata is backed up; visibility, shared documents, recovery and export snapshots preserve ink state. Plates follow crop, resize, rotate and flip. Unsupported layered exports reject extra plates instead of dropping them. All new labels are translated across shipped catalogs.

Validation:

  • make test-spot-ink: 405 passing core/codec/shared-document/paint/transform/command/codec-plugin tests, including hand-encoded independent PSD/PSB fixtures, ZIP prediction, plate polarity, process independence, undo, geometry, shared recovery and concurrent tile edits.
  • make test-spot-editor: passed the editor runtime test covering spot registration through rotation/flipping and undo.
  • make check-spot-ink and make check-spot-web: editor native and browser compilation.
  • make lint-spot-ink: strict Clippy on all touched crates and targets (-D warnings).
  • make verify-spot-psd with psd-tools 1.10.9: independent readback of six emitted PSD/PSB files covering all three depths, standard spot resources and unchanged process planes.
  • make check-i18n, make check-spot-catalogs, make fmt-check-spot-ink and git diff --check.

The simulation is an approximation, not a certified press proof. RGB raster exports contain process pixels; PSD/PSB deliver the separate plates. Content-aware resize is unavailable with plates because it lacks a common seam mapping. Image Size resamples ink coverage bilinearly, and the existing clipboard is 8-bit. No Adobe headers or Photoshop plugin SDK code were read, and .8bf plugin support was not changed. Details and format sources: docs/spot-ink.md.

@IAmJSD
IAmJSD force-pushed the feat/spot-colour branch 2 times, most recently from a3453d2 to 70eea06 Compare September 20, 2026 13:04
@IAmJSD
IAmJSD merged commit 865ab55 into main Sep 20, 2026
5 checks passed
@IAmJSD
IAmJSD deleted the feat/spot-colour branch September 20, 2026 19:10
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