PhotoCraft reads GIMP's .xcf (and .xcf.gz) files, read only, through a new
reader in photocraft-io written from the public XCF specification: versions
0 to 26, uncompressed, RLE and zlib tiles, 8/16/32-bit integer and
16/32/64-bit float precisions (linear precisions get a linear profile),
pixel layers at any position, groups by item path with pass-through,
layer masks applied or disabled, opacity, visibility, locks, colour tags,
the 2.10 and legacy blend modes mapped to Photoshop's (modes without an
equivalent open as Normal with a note), the ICC profile, resolution,
guides, the comment, extra channels and the saved selection; indexed
images open as RGB. Text, vector and link layers open as their pixels;
layer effects, paths and floating selections are reported.
Fixtures are written by GIMP 3.2 itself (scripts/xcf_fixtures.py), each
with GIMP's merged rendering as a PNG. In gamma-encoded blend and
composite spaces our composite matches GIMP within 0.5/255; GIMP's
linear-light default, its Clip to backdrop and its clamp-after-alpha
for unbounded modes are documented and measured in docs/xcf.md.
Photoshop's Paragraph panel checkbox, per paragraph style:
- doc: ParagraphStyle.hanging (serde default off; .pcraft keeps it).
- layout: a trailing run of closing marks (. , : ; ! ? and fullwidth
twins, ellipsis) trims out of the aligned width on center/right lines,
so a centered line ending in an ellipsis stays centered; a wrapped row
of nothing but marks steps back onto the line above and hangs past the
box edge (contiguous ranges, merged-row baseline, manual kerning; no
RTL, vertical or tabs).
- PSD: /Hanging bool in the paragraph sheet, right after /LeadingType as
the corpus files show; read defaults off.
- engine: type.setStyle takes "hanging":bool, params doc updated.
- UI: checkbox in the Paragraph section, a Paragraph Styles editor row,
Character dock group grows one row; translations for the new label.
- tests: layout hang runs (trim, merge-back, plain no-op), PSD write and
paragraph-sheet read round trips, engine setStyle, panel harness.
Save Actions wrote Photo Filter steps with the four-char event code PhtF.
Photoshop loads the file but stops on playback ("The command 'Photo
Filter' is not currently available"). The same descriptor runs under the
string event photoFilter (measured by the reporter in Photoshop 27.11 at
8 and 16 bits). PhtF is the adjustment's class, not an event.
- Photo Filter now exports by name (photoFilter), like Black & White,
Box Blur and Surface Blur since dfe94d6a. The descriptor is unchanged.
- Import still accepts PhtF through LEGACY_CODES, so actions PhotoCraft
saved before keep loading, and they re-save under the name.
- Tests: Photo Filter joins the by-name/legacy-code test (export id,
import by name and old code, near misses stay Photoshop steps). A new
test records the issue's exact step, saves it strictly with nothing
skipped, loads a Photoshop-authored step and an old PhtF step, re-saves
both as photoFilter, and plays both the same as a direct run at 8 and
16 bits. Both tests fail without the fix.
docs/scorecard.md regenerated with cargo xtask scorecard (24 of 172); the
Preferences test keeps main's Enhanced Controls rows and the demosaic row;
catalog tails keep both sides.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply Image onto a layer mask (new on main) keeps this branch's tone
handling: a CMYK composite reaches the mask as its luminosity, as it does an
alpha channel, with a test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The snapshot source-column test now takes Snapshot 1's row below the first
snapshot's, and history.setSource's bad-param test no longer expects
snapshot 0 to be missing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Hst2 adjustment wrote and read hue under 'Hue '; Photoshop's key is 'H ' (stringID hue, as PhotoCraft's PSD Hue/Saturation smart filter already uses). Exported actions failed in Photoshop with a program error, and Photoshop-recorded actions imported without their hue. Export writes 'H '; import reads it, and still reads 'Hue ' from PhotoCraft's own older files.
Brings in main's Clear History, state ids and History Brush source (#3534, #3536)
through #3535's merge. Headless doc.save keeps main's on_doc and still adds the
save snapshot inside it; DocState has both save_snapshot and source_snapshot.
Two tests from #3536 now account for the automatic first snapshot (id 0): it is a
valid History Brush source, and the snapshot row clicked is the new one. Catalogs:
one line per string (duplicate History Options… lines dropped in hu, tr).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts only in the parity docs: status lines take main's text with the
JPEG Options entry (FILE-215-19) on top; scorecard takes main's rows with
FILE-215-19 done and File compatibility 10 / 12 / 5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Japanese printing had no paper of its own: the Print dialog and `file.print`
only offered letter/legal/tabloid/A3–A5/4x6/5x7, so a 年賀状 (New Year card),
はがき, a JIS B5 handout or an L判 photo could not be printed or exported to
PDF at its size. Add the customary papers at their exact metric sizes after the
existing entries, whose order and sizes are unchanged:
はがき 100×148 mm (283.46×419.53 pt), 往復はがき 148×200, JIS B5 182×257
(515.91×728.50), JIS B4 257×364 (728.50×1031.81), A6, L判 89×127
(252.28×360.00), 2L判 127×178, KG判 102×152, 六切 203×254 and 四切 254×305.
Names resolve case-, space- and punctuation-insensitively, and the customary
names are aliases (はがき/ハガキ/葉書/ポストカード, 往復はがき, JIS B5/B5 (JIS),
JIS B4/B4 (JIS), L判/Lサイズ/L-size, 2L判, KG判, 六切/6切, 四切/4切). The Print
dialog lists the sizes with their customary names and metric sizes, and the PDF
page (MediaBox) takes the paper's size.
Tests: `print_cmds::tests::japanese_paper_sizes_and_aliases` pins every size to
0.1 pt, the aliases and the unchanged existing papers;
`japanese_paper_sizes_reach_the_pdf_page` prints on はがき, L判, the はがき alias
and JIS B5 and reads the actual PDF MediaBox (283.46×419.53 and 252.28×360.00 pt).
Docs: docs/printing.md gains a Paper sizes section, docs/target-app-parity.md's
print row and revision history, and ROADMAP.md's progress log and revision
history, dated 2026-10-22; existing revision rows keep their dates.
Keeps main's Clear History, state ids and History Brush source (#3534, #3536 and
the integration fix-up) together with History Options: states carry both their
id and their visibility; non-linear record keeps the pinned brush source; trim_with
keeps the source-first logic. The rollback log now records the index each state
was dropped at (the brush source is never dropped, so it is not always the front)
and the replaced document, so a rollback puts every state back where it was.
Clear History ends the rollback window. Catalogs: one line per string.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>