Commit Graph
3320 Commits
Author SHA1 Message Date
Dylan M. Taylor 09cae32c45 Merge pull request #1776 from vangel76/fix/gutter-at-top
The "gutter at top" page setting in Word files is now read and saved
2026-11-16 16:11:33 -05:00
Dylan M. Taylor a3c1f3a65b Merge pull request #1580 from vangel76/fix/dwg-field-format-2007
DWG: field formats survive saving an older drawing as DWG 2007 or later
2026-11-16 16:10:56 -05:00
Dylan M. Taylor 5ef5134ccc image-codecs: keep stored WebP dimensions independent of EXIF compatibility (#1921) 2026-11-16 15:55:15 -05:00
FredApps 617a3cea3b Add craft-media-source: MediaSource, open_bytes, and open_reader (#1891) 2026-11-16 15:51:32 -05:00
Dylan M. Taylor 20220807a4 psd: preserve PhotoCraft lenient TySh prefix parsing (#1923) 2026-11-16 15:51:27 -05:00
Dylan M. Taylor 443a2b05ff docx: preserve partial table margins in current and tracked properties (#1924) 2026-11-16 15:51:23 -05:00
Dylan M. Taylor 136c34ae4c ffv1: bound thin-frame border and alpha storage before allocation (#1917) 2026-11-16 14:51:27 -05:00
FredApps 3af718585c Merge pull request #87 from zachshallbetter/feat/cms-constructors
craft-cms: public constructors for matrix/TRC and gray profiles (closes #61)
2026-11-16 19:56:28 +01:00
FredApps 28e1b05e3c Merge pull request #1774 from vangel76/perf/dds-bc45-1766
DDS textures: normal maps and grayscale maps save compressed (BC5/BC4), and DDS saves and opens faster
2026-11-16 19:55:31 +01:00
FredApps 1bc4d093e2 Merge pull request #1890 from storytold/onee/781-compositor-frame
Add craft-color and craft-frame for compositor pictures
2026-11-16 19:54:35 +01:00
FredApps 30cad49e95 Merge pull request #1907 from FredApps/fix/786-psd-consumer-resource-limits
fix(psd): preserve consumer parsing limits and borrow placed pixels
2026-11-16 19:53:51 +01:00
FredApps 0cca4ac66f Merge pull request #1900 from storytold/cutover/packbits-append
stream-codecs: append TIFF PackBits rows without EOD
2026-11-16 19:53:22 +01:00
Dylan M. Taylor 0d6dd8bed8 Merge pull request #1910 from storytold/refactor/timeline-depth-preflight
timeline: share allocation-free XML and JSON nesting preflight
2026-11-16 13:32:41 -05:00
vangel76 b73f8c03ed Merge remote-tracking branch 'upstream/main' into fix/dwg-field-format-2007-tmp 2026-11-16 19:18:25 +01:00
FredApps 3af2280ee3 Merge pull request #1337 from keithcsqueensu/xlsb-tables
craft-xlsx: read the tables of a binary workbook
2026-11-16 19:07:25 +01:00
FredApps a341e86b6d Merge pull request #1709 from dotCooCoo/feat/craft-texture-axis-sampling
craft-texture: add per-axis wrapping and MaterialCraft's stored sampling
2026-11-16 18:37:03 +01:00
FredApps 520de5f4b2 cms: integrate main and validate constructor wire boundaries 2026-11-16 18:18:22 +01:00
Dylan M. Taylor 3b597748ab timeline: keep provenance in module docs and personal attribution in Git 2026-11-16 12:07:35 -05:00
FredApps 808df4f186 dds: validate public boundaries and bound fallible decoding 2026-11-16 18:01:22 +01:00
FredApps 692a7fe5c9 ci: run the Windows gate's tests with nextest (#1881)
* ci: run the Windows gate's tests with nextest and link with rust-lld

The Windows leg of the Workspace gate takes 55-100 minutes. About half of that is
cargo test running ~370 test binaries one after another, twice (default and all
features), and another 15-17 minutes per feature set is the uncached test build,
where link.exe links every test executable.

- Windows runs the tests with cargo-nextest (parallel across binaries) and the
  doctests with cargo test --doc. The same tests run; .config/nextest.toml puts
  the tests that relied on in-process mutexes (craft-ui GPU, craft-video h264
  fixtures, craft-print) in one-at-a-time groups.
- Windows links with rust-lld via CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER.

Linux and macOS legs are unchanged.

* ci: keep link.exe on the Windows gate

The first run with rust-lld built the tests no faster than link.exe at the same
runner speed (14.4 min against 15.1 min on a runner 8% slower at clippy), so the
linker change is not worth its risk. nextest stays.
2026-11-16 11:45:15 -05:00
FredApps 209a40d66c craft-svg: floor declared() name window to a character boundary (#1899)
* svg: floor declared() name window to a character boundary

If the MAX_NAME+1 cut split a UTF-8 character, get(..bound).unwrap_or(rest)
fell back to scanning the entire suffix. Floor the window instead, and
when recording an overlong name extend to the next character boundary so
the key is still longer than MAX_NAME.

* test(svg): assert declared() keys stay bounded after a multibyte cut

The overlong-name refusal alone also passed on the old unwrap_or(rest)
fallback, which recorded the whole suffix. Bound recorded keys to
MAX_NAME+4 so the test fails if the suffix is stored again.
2026-11-16 11:45:10 -05:00
FredApps 24db17142b Merge pull request #1888 from storytold/onee/781-file-reader
media: add a pooled FileReader ByteSource
2026-11-16 17:43:18 +01:00
FredApps cc63a31309 Validate frame alpha depth and correct color metadata contracts 2026-11-16 17:41:25 +01:00
Dylan M. Taylor ce2ec507c2 Merge pull request #1893 from storytold/feat/psd-unpredict-scratch
psd: support caller-budgeted prediction scratch
2026-11-16 11:38:15 -05:00
Dylan M. Taylor a2560df05b timeline: cover lexical preflight compatibility and deep inputs 2026-11-16 11:25:03 -05:00
Brandon Thomas ecb92f4554 timeline: extract attributed allocation-free XML and JSON preflight scans 2026-11-16 11:24:32 -05:00
FredApps 10a585c3e2 fix(psd): preserve consumer resource limits (#786) 2026-11-16 17:14:31 +01:00
FredApps d839db7d4a Test odd planar layouts and independent storage validation 2026-11-16 17:06:42 +01:00
FredApps b84343883d Validate compositor frame inputs and return allocation errors 2026-11-16 17:04:27 +01:00
FredApps 3824ed5c25 Merge main and handle empty compositor frames safely 2026-11-16 16:57:39 +01:00
FredApps fb2b27b1f0 craft-xlsx: preserve spacing in simple structured references 2026-11-16 16:50:42 +01:00
FredApps a58989cae9 image-codecs: skip a SubIFDs array whose offset is cut off (#1889)
camera_raw_mode read a missing SubIFDs offset as 0, so it walked the TIFF
header as the pointer array and could classify a malformed TIFF as RAW.
Skip the entry instead, matching LightCraft's classifier.
2026-11-16 10:26:36 -05:00
FredApps d60d1b0a45 Merge pull request #1868 from tsw2k/fix/docx-frame-shape
craft-docx: a frame preset shape is a border with a hole
2026-11-16 16:24:26 +01:00
FredApps dd3015c678 wordmodel: keep the kashida length of a justified paragraph (#1875)
* wordmodel: keep the kashida length of a justified paragraph

ST_Jc lowKashida, mediumKashida and highKashida were all read as
Align::Justify, so the length was lost. ParaProps and ResolvedPara now
keep it; a direct both/justify cancels an inherited length. The DOCX
reader and writer round-trip the three values.

* docx: keep a style's kashida length when writing justify

w:jc encodes alignment and kashida together. A paragraph or style
with Align::Justify and kashida unset still inherits a length from
the style chain; writing "both" would read back as Some(Kashida::None)
and cancel it. Use the resolved length in that case.
2026-11-16 10:23:22 -05:00
FredApps 45ad9df637 craft-xlsx: decode XLSB defined names after the workbook's tables are indexed
A defined name's formula may use a structured reference (PtgList). Names were decoded inside
xlsb::workbook, before Package::workbook indexed the table parts, so such a name was left out
and the cells using it kept only their saved results. xlsb::workbook now returns the names
undecoded (Names), and Package::workbook decodes them with xlsb::read_names after
index_tables. Regression: a_name_using_a_structured_reference_is_decoded_after_tables_are_indexed
fails without the reorder.
2026-11-16 16:21:55 +01:00
FredApps fcf14d7d2d Merge main into XLSB tables (defined names, sizes and columns from #1330 and others) 2026-11-16 16:21:55 +01:00
Dylan M. Taylor 963a52ec95 test: report PackBits codec errors without requiring Failure Debug 2026-11-16 10:21:41 -05:00
FredApps e622efc125 Merge pull request #1865 from tsw2k/fix/table-narrow-column-floor
craft-flow: narrow table columns keep their width on import
2026-11-16 16:15:40 +01:00
FredApps fe512d4ffa Merge pull request #1862 from tsw2k/fix/rtf-table-grid-fallback
craft-rtf: tables keep their column grid on odd rows
2026-11-16 16:15:09 +01:00
FredApps 8ee8316213 Merge pull request #1652 from D13GOOOO/docx-locked-canvas
craft-docx: read a DrawingML locked canvas as a group of its members (wordcraft#5060)
2026-11-16 16:12:08 +01:00
FredApps 9fc471fc5c psd: add Descriptor::parse_prefix for mid-stream reads (#1887)
from_bytes still requires the slice to be fully consumed. parse_prefix
returns the descriptor and the number of bytes used, matching
VersionedDescriptor, so apps can read a descriptor that is followed by
more data (layer effects, fill and adjustment blocks).

Part of #778 and effectcraft#786.
2026-11-16 10:09:54 -05:00
Dylan M. Taylor ed850ede0f stream-codecs: append TIFF PackBits rows with shared packet encoder 2026-11-16 10:06:40 -05:00
Dylan M. Taylor a4fbe4e392 Merge main preserving PackBits and prediction regressions 2026-11-16 10:05:24 -05:00
FredApps e44720af47 media: refuse a truncated file on a FileReader cache hit
file() only checked length when reopening after eviction, so a prefix
read could still succeed if the handle was pooled. Check metadata on
the cached handle too, and drop the entry if the file is shorter or no
longer a regular file. MAX_OPEN_FILES is documented as a bound on
retained pool entries, not in-flight Arc handles.
2026-11-16 16:02:40 +01:00
FredApps 2ff7bd99b9 Merge remote-tracking branch 'origin/main' into onee/781-file-reader 2026-11-16 16:02:20 +01:00
FredApps 43fbfaaa3b Merge pull request #1330 from keithcsqueensu/xlsb-names
craft-xlsx: read the defined names of a binary workbook
2026-11-16 16:02:07 +01:00
Dylan M. Taylor b774e4d168 psd: add bounded PackBits recovery decoding for app cutovers (#1885)
* psd: expose bounded PackBits recovery row decoding

* Clarify recovery row budget and partial-error contract
2026-11-16 09:55:44 -05:00
FredApps bea91b1861 raw: charge each DNG chunk's own output allocation against the aggregate budget (craft-libs #778) (#1884)
A lossy JPEG smaller than its tile is now budgeted by its frame, but decoding still
fills the whole tile, so the chunk's w x h x spp output is charged as well (and refused
over MAX_SAMPLES). Regression test: a 256x256 JPEG padded with comments in a
16384x16384 tile is TooLarge instead of allocating ~1.5 GiB.
2026-11-16 09:55:38 -05:00
Dylan M. Taylor 472956a8d7 feat: add craft-control (control channel protocol) (#1879)
* feat: add craft-control (control channel protocol)

Port from solidcraft: the control channel any app may share, no UI toolkit.
- Per-launch token files (32 random bytes, user-only permissions)
- Loopback server with token-based authentication
- Client that talks to the loopback server
- Request/response types (ControlRequest, ControlResponse)
- Document watch for subscribed connections waiting on changes
- Effect type for requests still running when they finish

Desktop-only (wasm32 excluded): uses getrandom for token generation.
No external dependencies beyond serde and serde_json.

* fix: update test directory names from solidcraft-control to craft-control

* Record control crate dependencies in workspace lockfile

* re-trigger CI

* chore(lock): keep the wasm-bindgen family at the version main's runners install
2026-11-16 09:55:33 -05:00
FredApps 3919a28583 svg: a scene in local coordinates, with fill rules and element ids (#778, #789) (#1859)
* svg: a scene in local coordinates, with fill rules and element ids (#778, #789)

Document::from_tree_local keeps every node in its own user space, with its
transform relative to its parent, so an app can keep geometry editable apart
from where it is placed (EffectCraft's shape layers). Paths now carry their
fill rule, id and transform, and groups their id. from_tree is unchanged:
segments, strokes and group transforms stay absolute, path transforms are the
identity.

* craft-svg: place local text and glyph groups in their own frames (#789)

* svg: pattern paints carry their tile and content (#778, #789) (#1863)

Paint::Pattern now holds the resolved tile: id, rect, transform and the
content as scene nodes in tile space. Each pattern is converted once and
shared by every use; content past the depth limit, or a pattern that refers
back to itself, has none. In absolute scenes the tile transform maps to the
document.

* craft-svg: report scene-omitted group effects and unsupported elements (#789) (#1870)
2026-11-16 09:55:27 -05:00