Commit Graph
11686 Commits
Author SHA1 Message Date
FredApps 1bef71ab85 Merge main into fix/shape-path-make 2026-11-14 21:43:06 +01:00
Dylan M. Taylor 6297515031 chore: cut over remaining resvg and roxmltree usages to craft-svg and craft-xml (#14320)
* chore: cut over remaining resvg and roxmltree usages to craft-svg and craft-xml

* Cut over remaining photocraft-io TIFF tests, rawinfo example, and move exr to dev-dependencies

* chore: remove unused zune-jpeg workspace dependency

* style: cargo fmt
2026-11-14 13:49:42 -05:00
FredApps 0d3b1e8523 Merge pull request #11699 from ZIDAN44/fix/11353-wheel-gesture-ownership
Wheel: a panel scrolled past a dropdown, slider or font field keeps scrolling (#11353)
2026-11-14 15:21:12 +01:00
David Mann cb4cb9a593 Merge pull request #14370 from RickiNano/fix/automation-write-guard-14355
automation: write guard no longer replaces text and office files (#14355)
2026-11-14 15:00:15 +01:00
David Mann 7838fe09bd Merge pull request #14403 from RickiNano/fix/main-ci-craft-libs-fallout
Fix two main CI failures left by the craft-libs format migration
2026-11-14 14:59:51 +01:00
RickiNano fe8c93d198 perf(ui-egui): build the panel-state stamp ids once (#13120) (#13262)
remember_panel_state ran format! for each of the 7 panel stamp ids every frame. Build them once in a LazyLock from the same strings, so the persisted stamps keep their ids, and test that the cached ids equal the format!-based ones.
2026-11-14 14:36:28 +01:00
RickiNano 94d6d1aa79 Count tool: Marker Size and Label Size alert when typed out of range (#11768) (#13530)
* Count tool: Marker Size and Label Size alert when typed out of range (#11768)

A value typed past 1..10 (Marker Size) or 8..72 (Label Size) becomes the
closest one, and leaving the field opens the reference's alert: "An integer
between 1 and 10 is required. Closest value inserted." (8 and 72 for Label
Size). The fields take digits only, so "2.6" reads as 26. One typed entry
is one History step; scrubs and arrow steps keep theirs.

* Count tool: an IME commit into a size field drops . and , too (#11768)

The size fields dropped decimal points from typed and pasted text only, so
"2.6" committed by an IME reached the parser and stored 3, not 10.
2026-11-14 14:35:05 +01:00
RickiNano c65e70d87a Lens Correction batch: a Grayscale 8-bit source comes out RGB 8-bit (#13990) (#14026)
File > Automate > Lens Correction now converts a Grayscale 8-bit scratch
document to RGB before the correction, so every File Type writes RGB 8-bit,
as the reference application does. RGB 8/16-bit, Grayscale 16-bit and CMYK
sources keep today's mode and depth.
2026-11-14 14:31:45 +01:00
FredApps b044610e5d Merge pull request #4931 from FredApps/docs/canvas-rotation-4911
Add 15-degree rotate-left/right canvas shortcuts
2026-11-14 12:16:43 +01:00
FredApps 59c82a73ce Merge pull request #3597 from FredApps/feat/3592-multi-layer-transform
Free Transform several selected layers together (#3592)
2026-11-14 12:16:38 +01:00
RickiNano b9e3107535 raw: the look-fit fixture comment names its 12-bit encoding scale 2026-11-14 11:33:17 +01:00
RickiNano 2c8fab58ef ui-egui, raw: fix the two main CI failures left by the craft-libs format migration
- ui-egui: the typed TIFF open path is taken on TIFF magic bytes again, not on a
  `.tif` name. `photocraft_formats::detect(name, ..)` falls back to the extension,
  so any `.tif` file bypassed the import service (#14236);
  `files_dropped_with_no_document_open_all_open` caught it.
- raw: `recovers_a_known_matrix_and_curve` pins its fixture's white level to the
  12-bit range. craft-raw's NEF reader ignores a WhiteLevel tag and read the
  synthetic image's flat brightest patch (2370) as a saturation plateau, which
  skewed the fitted tone curve.
2026-11-14 10:06:04 +01:00
RickiNano 9d80876f70 automation: write guard counts only codecs this build writes
`written_kind` and `holds_image` accepted any format the codec registry
knows, so an existing PCX, XPM, DICOM or HEIF file (by name), or any file
starting with an XPM header, could be replaced although PhotoCraft only
reads those formats. Require the codec's write capability in both.
2026-11-14 09:19:52 +01:00
RickiNano 175a02deda automation: write guard no longer replaces text and office files (#14355)
#14236 moved `written_kind` and `holds_image` from the image codec
registry (`photocraft_codecs`) to `photocraft_formats`. That registry
also maps txt/md/csv/rtf and office files, and sniffs RTF, PDF and zip
containers by their bytes, so the #9439 guard let a save or render
replace an existing notes file. Use the codec registry again and drop
the `photocraft-formats` dependency that only these two lines used.

Fixes #14355
2026-11-14 09:00:45 +01:00
Dylan M. Taylor c2689ba214 svg: fix bounded non-strict embedded SVG limit handling and test assertions 2026-11-14 05:42:55 +00:00
Dylan M. Taylor 3636faa008 io, engine: respect forced Open As extension before magic-byte sniffing 2026-11-14 05:25:02 +00:00
Dylan M. Taylor 13fe2864af Fix CI formatting, clippy, scorecard, and format routing regressions 2026-11-14 04:52:59 +00:00
Dylan M. Taylor 4ab4b0ad07 format: align store tests with craft-pcraft-bundle 2026-11-14 04:07:44 +00:00
Dylan M. Taylor b0e0bcc6c4 Merge pull request #14236 from storytold/codex/photocraft-format-migration
Move remaining file formats and codecs to craft-libs (#778)
2026-11-13 23:03:16 -05:00
Dylan M. Taylor cf73e749c4 Merge pull request #14220 from storytold/photocraft-craftlibs
Migrate CMS, Affinity, KRA/ORA/XCF/PDN, and SVG formats to craft-libs (#778)
2026-11-13 22:13:00 -05:00
David Mann f143ce5849 Merge pull request #14097 from TrevorBrown-dev/fix/open-as-error-names-the-file-14049
Open As: an error names the file that was chosen and the format asked for (#14049)
2026-11-14 01:54:10 +01:00
David Mann 922e2ae29c Merge pull request #14088 from TrevorBrown-dev/fix/open-recent-after-smart-object-14053
File menu: Open Recent comes after Open as Smart Object (#14053)
2026-11-14 01:53:42 +01:00
David Mann faa588f7d9 Merge pull request #13985 from RickiNano/feat/copyright-title-13821
File Info: a Copyrighted document shows © before its name in the tab and window title (#13821)
2026-11-14 01:39:31 +01:00
David Mann 31fdfd2afa Merge pull request #14083 from ljkx/fix/14029-new-document-history-state
New Document: the first History state is New, not Open (#14029)
2026-11-14 01:39:15 +01:00
David Mann 36fa50e0e6 Merge pull request #13751 from rmsff/fix/direct-selection-options-bar-13219
Direct Selection: share the Path Selection options bar
2026-11-14 01:38:55 +01:00
David Mann 25f83a2135 Merge pull request #13697 from rmsff/fix/path-selection-cursor-13295
Path Selection: its own arrow cursor instead of the crosshair
2026-11-14 01:38:40 +01:00
David Mann 1289610209 Merge pull request #14068 from RickiNano/feat/13771-paths-export-document-bounds
Export Paths to File: Document Bounds writes the frame alone (#13771)
2026-11-14 01:38:26 +01:00
David Mann eb174cf122 Merge pull request #14007 from Bobderto/codex/13889-image-processor-formats
Export JPEG, PSD, and TIFF in one Image Processor run
2026-11-14 01:38:13 +01:00
David Mann 6a210ccc4d Merge pull request #13733 from SBaksa/photomerge-open-docs
Photomerge: merging the open documents no longer scans the dialog's folder (#13580)
2026-11-14 01:37:59 +01:00
David Mann 636a543f2b Merge pull request #14039 from RickiNano/fix/13996-load-stack-untitled
Load Files into Stack: the stack opens as an unsaved Untitled-N document (#13996)
2026-11-14 01:37:44 +01:00
David Mann 7ce248efe7 Merge pull request #13892 from ljkx/contact-sheet-subfolders
Contact Sheet II: Include Subfolders and Group Images by Folder (#13687)
2026-11-14 01:37:30 +01:00
David Mann 204b574bfb Merge pull request #13894 from ljkx/feat/13343-rectangle-gear
Rectangle tool: gear with Square, Fixed Size, Proportional and From Center (#13343)
2026-11-14 01:37:16 +01:00
David Mann 5924cfe9c5 Merge pull request #13115 from rmsff/fix/remove-right-click-while-pending-12551
Remove tool: a right-click while strokes wait opens nothing
2026-11-14 01:37:02 +01:00
David Mann 0e44fef401 Merge pull request #13286 from RickiNano/fix/direct-select-delete-key-13203
Direct Selection: Delete removes the selected anchor, segment or targeted path, not the layer (#13203)
2026-11-14 01:36:49 +01:00
Dylan M. Taylor 02ae5fd404 affinity: warn on converted artboard outlines 2026-11-14 00:29:55 +00:00
Dylan M. Taylor 8c7544ed2a Use craft-affinity from craft-libs; remove crates/affinity 2026-11-14 00:16:50 +00:00
Dylan M. Taylor 0eecd8636c engine/ui: update clone_sampling and tests to use craft-cms 2026-11-14 00:10:12 +00:00
Dylan M. Taylor 040962a5b4 Merge photo-cms-port: use craft-cms and remove crates/cms (#13393) 2026-11-14 00:02:22 +00:00
Dylan M. Taylor 8e78a9c1fe Merge switch-craft-svg: use craft-svg for SVG sniffing, SVGZ and draw-memory check (#13417) 2026-11-13 23:59:37 +00:00
Dylan M. Taylor 8f5aad2360 Merge switch-craft-kra-ora-xcf: use craft-kra, craft-ora, craft-xcf and craft-pdn (#13415) 2026-11-13 23:55:49 +00:00
RickiNano f876d52647 File Info: read and remove xmpRights:Marked only as an attribute inside a tag (#13821) 2026-11-14 00:24:35 +01:00
Trevor BrownandClaude Opus 5.5 8548a84fa9 Open As: the format check takes the importer's camera raw and Affinity lists
A copied list had left out 3fr and fff (photocraft_io::raw::EXTENSIONS), so as: "3fr" was refused as a parameter. The check now reads photocraft_io::raw::EXTENSIONS and photocraft_io::affinity::EXTENSIONS, with a test over every entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 18:13:04 -05:00
Trevor BrownandClaude Sonnet 5.5 f41a952236 Open As: an error names the file that was chosen and the format asked for (#14049)
Open As built `<stem>.<as>` to pick the decoder and also put that made-up name
into the error, so notes.txt opened as pcx failed as "notes.pcx: ...". The
decoder name is unchanged; the error now names the real file and the format
asked for, keeping the decoder's detail: `"notes.txt" could not be opened as
PCX: codec: unrecognized image format`. The batch RAW path names the real file
too. An `as` value that names no format PhotoCraft reads is a BadParams error
naming the value, before any decode.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 18:06:52 -05:00
ljkx 1ce7531d83 History panel test: call the icon function by its re-exported name 2026-11-13 23:51:02 +01:00
Trevor BrownandClaude Sonnet 5.5 690cce2c12 File menu: Open Recent comes after Open as Smart Object (#14053)
The dynamic Open Recent submenu is now inserted directly after
file.openAsSmartObject instead of file.openAs (the old anchor stays as the
fallback). Its entries, ids, shortcuts and enabled state are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 17:50:33 -05:00
ljkx 573520d9ca New Document: the first History state is New, not Open (#14029)
file.new renames the new document's opening History state to New, as the
reference application does; opened files keep Open. The History panel icon
and the History Brush hint recognise New as the opening state too.
2026-11-13 23:39:14 +01:00
rmsff 67052b49c3 Test the Direct Selection options bar (#13219) 2026-11-14 01:21:16 +03:00
rmsff 897c9491e4 Test Path Selection's arrow cursor and its priority (#13295)
Reuses the guide cursor tests' harness, hover and screen helpers.
2026-11-14 01:21:16 +03:00
rmsff 9e225d2705 Direct Selection: share the Path Selection options bar
Direct Selection showed only a hint without a shape layer and never the
Path operations button. It now draws the Path Selection bar: Path
operations whenever there is a path to act on, then Mode, Fill and
Stroke with a shape layer. The menu's operations act on the components
that have selected anchors, New Layer stays greyed, and Merge Shape
Components merges the path Direct Selection edits.
2026-11-14 01:21:16 +03:00
rmsff 305bdc718f Path Selection: show its own arrow instead of the crosshair (#13295)
Over the canvas the tool now paints a white arrow with a black outline,
tip on the pointer, and the solid black arrow with Alt over a component.
Cmd keeps the white arrow, as measured; Precise Other Cursors keeps the
crosshair. The type-on-path and shape-box cursors are decided earlier
and still win.
2026-11-14 01:21:16 +03:00