Commit Graph
3891 Commits
Author SHA1 Message Date
skylar taylor-barrick 6d8cbac7dc Merge pull request #2945 from diegochagas/feat/xcf-read
Open GIMP XCF files: layers, groups, masks, blend modes, channels and selection
2026-10-21 14:35:32 -06:00
skylar taylor-barrick 18e2d45420 Merge pull request #6318 from robertoffmoura/fix/floating-selection-move-lag
Fix lag when dragging a floating selection with the Move tool
2026-10-21 14:25:55 -06:00
bommerts e2a238737d Scale shape strokes when resampling documents (#8341) 2026-10-21 16:15:22 -04:00
Diego Chagas ca18689304 Open GIMP XCF files: layers, groups, masks, modes, channels and selection (#1076)
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.
2026-10-21 16:57:22 -03:00
VladimirPozdnyakov 0dfac5081f Roman Hanging Punctuation: trailing marks hang and don't steer the alignment
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.
2026-10-21 22:45:10 +03:00
JGF a310863330 Actions: Photo Filter saves to .atn under the name Photoshop runs (#8301)
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.
2026-10-21 15:30:15 -04:00
vangel76 c1810b2c1d Preserve contour presets on malformed input and discard naming drafts 2026-10-21 20:27:53 +02:00
vangel76 9484e9e412 Keep one clone source snapshot across Vanishing Point preview batches 2026-10-21 20:27:51 +02:00
vangel76 1017babd35 Fix filter-mask copy, named targets and mask-view switching 2026-10-21 20:27:49 +02:00
UnemarsandClaude Opus 5.5 eca10449ce Merge origin/main into raw-demosaic-choice
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>
2026-10-21 20:18:37 +02:00
aiongg 66e54580b7 Merge PR #7838: Free Transform: a result may take what Memory Usage allows, not 2^30 px (#7807) 2026-10-21 18:15:11 +00:00
aiongg 02eeecd59f Merge PR #7870: Shortcuts: Ctrl+F4 closes the document beside Ctrl+W (Windows/Linux) 2026-10-21 18:15:08 +00:00
aiongg f6ed54e83e Merge PR #7389: fix(atn): a preset-only Photo Filter step exports its resolved colour (#7235) 2026-10-21 18:15:08 +00:00
aiongg be2760a7bc Merge PR #7353: test(engine): make the define-brush mask allocation fail on its own (fail-after-one) (#212) 2026-10-21 18:15:07 +00:00
aiongg f471a08224 Merge PR #7397: Auto-Blend Layers: turn the Background into a layer before masking it 2026-10-21 18:15:05 +00:00
aiongg 8e84c55296 Merge PR #7576: Presets: an Export As preset survives a damaged sibling set (test for #6906) 2026-10-21 18:15:04 +00:00
aiongg 8e66e5fcdd Merge PR #7587: Actions: stop when a Save step's document is closed by a Save Document script (#7367) 2026-10-21 18:15:03 +00:00
aiongg a6702058db Merge PR #7627: Actions: Minimum / Maximum with Preserve: Roundness is no longer exported as Squareness (#7233) 2026-10-21 18:15:02 +00:00
aiongg ef62950bff Merge PR #7837: Free Transform: a result over the pixel limit says so, not "not enough memory" (#7807) 2026-10-21 18:15:01 +00:00
aiongg 8baf2ef75b Merge PR #7751: Actions: a Selective Color step keeps the values of its scalar form 2026-10-21 18:15:00 +00:00
aiongg c5630b2a5d Merge PR #7636: Show Technique and Range in the glow Layer Style pages (#6698) 2026-10-21 18:15:00 +00:00
Daniel Miguel 1d70f5d6bf M0: default to the system title bar on Linux and preserve saved choices 2026-10-21 20:02:27 +02:00
vangel76 d5c0b699cb Merge main into filter-mask painting branch 2026-10-21 19:58:20 +02:00
vangel76 b7191e5024 Merge remote-tracking branch 'upstream/main' into review/pr-3281 2026-10-21 19:57:43 +02:00
vangel76 e98988c3a7 Merge remote-tracking branch 'upstream/main' into review/pr-4392 2026-10-21 19:56:30 +02:00
Korg1ch 0c1a59495f test(actions): Hue/Saturation writes and reads hue under H in .atn (#8302, #8308) 2026-10-21 20:46:33 +03:00
David MannandClaude Opus 5.5 1decafeacf Merge remote-tracking branch 'origin/main' into HEAD
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>
2026-10-21 19:43:54 +02:00
David MannandClaude Opus 5.5 d8ad5a9116 Merge follow-up: main's new History source tests count the first snapshot (id 0)
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>
2026-10-21 19:33:32 +02:00
Korg1ch e3de56c639 fix(actions): Hue/Saturation uses Photoshop's hue key H in .atn files (#8302, #8308)
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.
2026-10-21 20:26:44 +03:00
David Mann 20708032b3 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/i18n/sr.tsv
#	crates/ui-egui/src/panels.rs
#	docs/ui-parity.md
2026-10-21 19:23:50 +02:00
David MannandClaude Opus 5.5 99aafc284c Merge fix/history-options (#3535, with origin/main) into feat/history-snapshot-options
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>
2026-10-21 19:03:46 +02:00
Higgs32584andClaude Opus 5.5 f916c98536 Merge upstream/main into revive/4330-jpeg-options
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>
2026-10-21 12:56:32 -04:00
bazmarth 4573037531 Merge remote-tracking branch 'origin/main' into feat/polygon-corner-radius
# Conflicts:
#	docs/scorecard.md
#	docs/ui-parity.md
#	scorecard/tools.toml
2026-10-21 16:49:42 +00:00
midasdf 161c1d21f7 Print: Japanese paper sizes (はがき, 往復はがき, JIS B5/B4, photo sizes)
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.
2026-10-22 01:35:17 +09:00
Korg1ch d93458b72b fix(actions): record File › Export › Export As and replay it with its destination and settings (#7207) 2026-10-21 19:29:16 +03:00
David MannandClaude Opus 5.5 6fcb4d346a Merge origin/main into fix/history-options
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>
2026-10-21 18:17:35 +02:00
David Mann 120de73d10 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
#	docs/scorecard.md
#	docs/ui-parity.md
2026-10-21 18:09:27 +02:00
Ratul Paul 7f4e3c9db8 Merge upstream main and reconcile UI progress documentation
Preserve upstream gap and UI parity progress, revision histories and
header notes alongside the UI scale preset updates. Keep existing
translations, tests, contributor and coauthor credits intact.

Validation: 5,489 engine/UI tests passed, 33 ignored; fmt, Clippy, layers,
wasm, scorecard generation/check and panic_hunt passed.
2026-10-21 22:03:30 +06:00
aiongg e7ddf6d7c7 Merge PR #7771: Save for Web: later slices cover earlier ones, covered slices split into pieces (#7770) 2026-10-21 15:45:55 +00:00
aiongg 5baa87b131 Merge PR #7762: Perspective Crop: Color Sampler points move with the image (#7760) 2026-10-21 15:45:54 +00:00
aiongg 3be9e7bcb1 Merge PR #7733: Painting symmetry: canvas edits move the axis with the pixels (#7732) 2026-10-21 15:45:54 +00:00
aiongg a425efcb2a Merge PR #6681: Content-Aware Move: live preview for large selections (TOOL-213-4, #6680)
# Conflicts:
#	docs/scorecard.md
2026-10-21 15:45:53 +00:00
aiongg f9587384c7 Merge PR #5889: Image: Bitmap dialog with Output resolution and per-method settings (#5559) 2026-10-21 15:45:39 +00:00
aiongg e027e048fc Merge PR #5847: Shapes: Density and Feather on shape layers (#5846)
# Conflicts:
#	docs/scorecard.md
2026-10-21 15:45:38 +00:00
aiongg 77557d75f1 Merge PR #8229: Integration batch: 8 PRs on main
# Conflicts:
#	crates/engine/src/layer_style.rs
#	crates/io/src/psd_export.rs
#	crates/io/src/smart_map.rs
#	docs/file-format-parity.md
2026-10-21 15:45:07 +00:00
Michael Higgins 616ab9d56a Merge branch 'storytold:main' into fix/6745-atn-event-mapping 2026-10-21 11:37:25 -04:00
Korg1ch 01784f104f test(raw): a developed raw takes the Raw Defaults resolution on every open path; other files keep theirs (#7789) 2026-10-21 18:28:11 +03:00
Korg1ch 699bbd4b85 fix(engine): a developed raw opens at Preferences › Raw Defaults › Resolution (#7789) 2026-10-21 18:28:11 +03:00
Korg1ch 5f4c636b09 fix(ui-egui): File Handling preference to not append "copy" when saving a copy, as in Photoshop (#8080) 2026-10-21 18:28:09 +03:00
Korg1ch 66ff3bf7eb test(engine): a Displace smart filter keeps its embedded map; an outside new map is refused before it is read (#7423) 2026-10-21 18:26:00 +03:00