Commit Graph
423 Commits
Author SHA1 Message Date
aiongg f32f882f3a Merge main into integration-10
# Conflicts:
#	apps/photocraft-web/src/web.rs
#	apps/photocraft/src/services.rs
#	crates/engine/src/file_cmds/tests.rs
#	crates/engine/src/float_cmds.rs
#	crates/engine/src/float_cmds/tests.rs
#	xtask/src/corpus.rs
#	xtask/src/corpus_pins.rs
#	xtask/src/main.rs
2026-10-21 21:56:26 +00:00
aiongg 21a952698a Integration: Lens Flare and the render filters' colours read with main's double and typed enum_name helpers, for #6160 2026-10-21 21:56:22 +00:00
aiongg 1a388f8ba7 Merge PR #8229: Integration batch: 8 PRs on main
# Conflicts:
#	crates/io/src/smart_map.rs
#	docs/file-format-parity.md
2026-10-21 21:56:22 +00:00
aiongg f97c28828d Merge PR #6873: HEIF: honour the nclx colour description; HLG/PQ HEICs open as linear BT.2020 32-bit (#6752) 2026-10-21 21:56:21 +00:00
aiongg 403dc5043a Merge PR #8096: CodeRabbit follow-ups for the #8095 batch 2026-10-21 21:56:21 +00:00
aiongg 07e4020360 Merge PR #8098: PSD layer comps: an entry without enab inherits the previous visibility, as in Photoshop (#8093) 2026-10-21 21:56:21 +00:00
aiongg 7b81efddcb Merge PR #5436: IO: open .psd through the PSD reader, not codecs (#5258) 2026-10-21 21:56:21 +00:00
aiongg c865e3b93b Merge PR #5928: BMP export: Indexed Color documents save as palette BMPs 2026-10-21 21:56:20 +00:00
aiongg a0d6bf2dcd Merge PR #7791: Camera raw: a developed raw keeps its EXIF (RW2 included), so File Info shows its Camera Data (#6957) 2026-10-21 21:56:11 +00:00
aiongg b75f0cf21d Merge PR #7799: Displace on a Smart Object: the map is embedded in the smart filter, so it displaces (#7423) 2026-10-21 21:56:10 +00:00
aiongg b0833a893c Merge PR #7694: perf(format): reuse .pcraft writers between document saves 2026-10-21 21:56:10 +00:00
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
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
David MannandClaude Opus 5.5 a1b56b2d72 Address CodeRabbit review: a layered Duotone writes its real merged image, for #4935
A Duotone PSD opens flattened from its merged image (its layer records are
not read back), but with Maximize Compatibility off a layered Duotone was
saved with the white placeholder, so reopening it showed white. Its merged
image is now always written, like a document without layer records.

Test: a_layered_duotone_keeps_its_image_without_maximize_compatibility.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 21:04:36 +02:00
David MannandClaude Opus 5.5 45c7b57b6a Address CodeRabbit review: render smart filters with unmodeled settings stay verbatim, for #6160
Clouds, Difference Clouds, Fibers and Lens Flare opened as editable smart
filters even when their descriptor held an extra or repeated setting, a
value of another type (a long centre, a unit seed), an RGBC colour with
extra keys or out of 0-255, or a Lens Flare enum of another type. A
re-save rebuilt the item without it. They now need exactly the keys and
value types Photoshop writes; anything else stays a psd.unsupportedFilter
and round-trips byte for byte, as main's newer filters do with only_keys.

Test: render_filters_with_settings_we_dont_model_stay_verbatim (30 cases).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 21:04:36 +02:00
David MannandClaude Opus 5.5 30c420761d Merge remote-tracking branch 'origin/main' into integration-batch-5
Conflicts with main's smart-filter and layer-style work, both sides kept:
- smart_map: main's 27 more filters and this batch's Clouds, Difference
  Clouds, Fibers and Lens Flare (45 known); the item colours are written for
  Pointillize, Tiles and the three coloured render filters.
- layer_style: main's new Stroke default (1 px inside black) with this
  batch's Overprint.
- psd_export: main's verbatim unknown adjustments with this batch's unpadded
  Gradient Map check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 19:50:16 +02:00
Rene Leonhardt aa715535f3 perf(format): reuse save cache ownership safely
Move cached keys and compressed buffers between saves, and compare weak
allocation pointers without temporary strong-reference updates. Keep
payload budgets and archive bytes unchanged.

Allow fallible tile edits after a cached save. Move pixel storage when
only weak references remain; use a fallible copy for shared storage and
restore the original tile if the copy fails.

Cover cache key reuse, edits after saves at every depth, and weak/shared
tile ownership. Name the fixed revisions behind the existing timings.
2026-10-21 17:49:09 +02:00
aiongg 556931ad90 Merge PR #6397: PSD: Perspective Warp smart filters open and save like Photoshop (#6268)
# Conflicts:
#	docs/file-format-parity.md
2026-10-21 15:47:12 +00:00
aiongg 29c073b75c Integration: Mezzotint and Color Halftone use main's only_keys and enum_name, and the new test cases use pixelate_item; the PR's helper copy dropped, for #6317 2026-10-21 15:47:04 +00:00
aiongg a936a93464 Merge PR #6317: PSD: Mezzotint and Color Halftone smart filters open and save like Photoshop (#6316)
# Conflicts:
#	crates/io/src/smart_map.rs
2026-10-21 15:46:55 +00:00
aiongg 0034c989e6 Integration: Offset and Custom use main's only_keys, which also rejects a repeated key, and enum_from; the PR's only_keys and typed_enum dropped, for #6305 2026-10-21 15:46:46 +00:00
aiongg 9bf386adc9 Merge PR #6305: PSD: Offset and Custom smart filters open and save like Photoshop (#6304)
# Conflicts:
#	crates/io/src/smart_map.rs
2026-10-21 15:46:25 +00:00
aiongg 44a9161960 Integration: Surface Blur's radius read with unit_in, unit_value dropped, for #6299 2026-10-21 15:46:14 +00:00
aiongg 8564c74861 Merge PR #6299: PSD: Surface Blur, Smart Blur and Radial Blur smart filters open and save like Photoshop (#6298) 2026-10-21 15:46:07 +00:00
aiongg a8a6894ca7 Merge PR #6297: PSD: parameterless smart filters (Blur, Sharpen, Find Edges, Solarize…) open and save like Photoshop (#6296)
# Conflicts:
#	crates/io/src/smart_map.rs
2026-10-21 15:46:07 +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
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
Korg1ch 3c7ee9eded fix(engine): Displace on a Smart Object embeds its map in the smart filter, as Photoshop does (#7423) 2026-10-21 18:23:45 +03:00
Branch Sync 1069d30cb1 Merge remote-tracking branch 'refs/remotes/upstream/main' into HEAD 2026-10-21 11:17:31 -04:00
David MannandClaude Opus 5.5 87862a6f05 Address CodeRabbit review: a repeated Offset/Custom setting stays verbatim
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 13:03:44 +02:00
David MannandClaude Opus 5.5 6686b22d91 Address CodeRabbit review: a repeated Mezzotint/Color Halftone setting stays verbatim
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 13:00:18 +02:00
David MannandClaude Opus 5.5 91a28160ff Address CodeRabbit review: blur smart filters check enum types, units and save ranges
Opening: Smart Blur and Radial Blur enums must have their measured enum
type, Surface Blur's radius must be #Pxl and Smart Blur's radius and
threshold plain doubles; anything else stays verbatim instead of being
re-written in another shape.
Saving: a present value that is not a number or lies outside the range
the filter opens with (Surface Blur radius 0.5, a text Radial Blur
centre) is an error with a warning, not a filter that reopens as
unsupported or a centre silently taken as 0.5.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 12:07:18 +02:00
David MannandClaude Opus 5.5 a2b5e4de4f Address CodeRabbit review: an oversized Perspective Warp stays verbatim; parity doc date and PSD row
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 12:07:12 +02:00
David Mann e9b6710b89 Merge remote-tracking branch 'origin/main' into fix/6268-psd-perspective-warp-sf 2026-10-21 11:57:56 +02:00
David MannandClaude Opus 5.5 c2dbd974eb Move the descriptor helpers next to int() so the sibling smart-filter PRs share them
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 11:56:46 +02:00
David MannandClaude Opus 5.5 3c77d1d6aa Address CodeRabbit review: Mezzotint/Color Halftone with an extra setting or a mistyped enum stay verbatim
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 11:55:43 +02:00
David Mann afa8b234ce Merge remote-tracking branch 'origin/main' into feat/file-215-2-blur 2026-10-21 11:55:05 +02:00
David MannandClaude Opus 5.5 19f9f50042 Address CodeRabbit review: keep a filter whose Fltr is not a descriptor verbatim
A recognized no-options filterID (or Shadows/Highlights) with a present
but unreadable Fltr opened as editable and lost the Fltr on save; it now
stays an unsupported filter, written back unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 11:54:26 +02:00
David Mann 2ed222416d Merge remote-tracking branch 'origin/main' into feat/file-215-2-mezzotint-halftone 2026-10-21 11:38:50 +02:00
David MannandClaude Opus 5.5 9164d2eebc Address CodeRabbit review: Offset/Custom with an extra setting or a mistyped enum stay verbatim
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 11:37:31 +02:00
David Mann b68b64ccb5 Merge PR #6160: feat(psd): editable Render smart filters (Clouds, Difference Clouds, Fibers, Lens Flare)
# Conflicts:
#	docs/file-format-parity.md
2026-10-21 11:37:14 +02:00
David Mann 86811ddeee Merge PR #6002: Stroke: keep Overprint (overprint)
# Conflicts:
#	crates/engine/src/layer_style.rs
#	crates/ui-egui/src/layer_style.rs
#	docs/file-format-parity.md
2026-10-21 11:36:58 +02:00
David Mann d276fce259 Merge PR #8081: fix(psd): pad Gradient Map blocks (#8070) 2026-10-21 11:30:21 +02:00
David Mann a492716367 Merge PR #5990: Bevel & Emboss: keep the Gloss Contour's Anti-aliased (antialiasGloss) 2026-10-21 11:29:05 +02:00
David Mann b16910427c Merge PR #4935: PSD Duotone: read and write the ink block (names, colours, curves) 2026-10-21 11:28:32 +02:00
David Mann 27b8d133d8 Merge PR #4771: Fix mixed-order layered TIFF type geometry and unsafe text fallback 2026-10-21 11:28:23 +02:00
David Mann 89dbbc9aca Merge remote-tracking branch 'origin/main' into feat/file-215-2-noparam 2026-10-21 11:25:55 +02:00
David Mann e7d82f219b Merge remote-tracking branch 'origin/main' into feat/file-215-2-other 2026-10-21 11:25:40 +02:00
aiongg b1e408d28f Merge the smart-filter track (#7066 #6398 #6397 #6297 #6299 #6301 #6303 #6315 #6305 #6317)
# Conflicts:
#	docs/file-format-parity.md
2026-10-21 05:04:04 +00:00
aiongg fc371711e6 Merge PR #5847: Shapes: Density and Feather on shape layers (#5846)
# Conflicts:
#	docs/scorecard.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-10-21 05:04:03 +00:00