Commit Graph
4238 Commits
Author SHA1 Message Date
FredApps 9cf333733f Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 06:25:27 +07:00
FredApps 369eb60baa Merge pull request #3059 from dotCooCoo/feat/cdr-preview
craft-cdr: read the picture a .cdr file keeps of its drawing
2026-11-23 06:24:49 +07:00
FredApps e82ff5b8e0 Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 05:54:27 +07:00
FredApps 32e944076d Merge branch 'main' into feat/cdr-preview 2026-11-23 05:54:05 +07:00
Dylan M. TaylorandDylanMTaylor 33be35625e develop: wrap negative Camera Raw hue turns (#3089)
Co-authored-by: DylanMTaylor <10594816+dylanmtaylor@users.noreply.github.com>
2026-11-22 15:45:42 -05:00
Dylan M. TaylorandDylanMTaylor 9688cdf37e develop: keep Camera Raw quantile indices in bounds (#3088)
Co-authored-by: DylanMTaylor <10594816+dylanmtaylor@users.noreply.github.com>
2026-11-22 15:45:34 -05:00
Dylan M. TayloranddotCooCoo d2a776ee56 metafile: expose frame and source-unit facts (#3071)
* metafile: expose frame and source-unit facts (#788)

Adapt the VectorCraft WMF unit scanner and EMF header-scale source facts from current VectorCraft main (db9acab4), preserving original authorship. Keep physical fallback scales and picture interpretation in the consumer.

* Distinguish EMF fixed calibration from variable header data

Retain the current app sizing policy. Correct the shared header classification when a description or pixel descriptor starts before the micrometre fields; this intentionally differs from the former size-only interpretation for those files.

* Use fixed-size chunks in the EMF header regression

* Reject negative EMF micrometre dimensions

ENHMETAHEADER stores szlMicrometers as signed SIZEL. Fall back to positive millimetre dimensions when either micrometre axis is nonpositive.

---------

Co-authored-by: dotCooCoo <RobertLeeLW@gmail.com>
2026-11-22 15:45:26 -05:00
Terra854 1c137fea60 image-codecs: share bounded PNG sRGB metadata writing (#2941)
* image-codecs: share bounded PNG sRGB metadata writing

* png: reject legacy color chunks that conflict with sRGB
2026-11-23 03:38:34 +07:00
Terra854 12d0cec130 svg: identify the first element in SVG sniffing (#2909) 2026-11-23 03:36:36 +07:00
Terra854 b20e66f656 avi: share framed MPEG and AC-3 audio scanning (#2928) 2026-11-23 03:36:26 +07:00
Terra854 4499f2f828 exr: share bounded PXR24 scanline reconstruction (#2935) 2026-11-23 03:36:19 +07:00
Terra854 d5493fe6e6 exr: share bounded RLE and byte prediction (#2921) 2026-11-23 03:36:07 +07:00
Terra854 0da914f4a2 video: share seekable raw APV access-unit ranges (#2925) 2026-11-23 03:35:54 +07:00
Terra854 fb04a21e9d video: allow a lower Motion JPEG track allocation limit (#2916) 2026-11-23 03:35:41 +07:00
Terra854 1b8d0150da Normalize PostScript literal string line endings (#2844) 2026-11-23 03:33:23 +07:00
Terra854 66ed98f1fe usd: accept scalar external arcs with prim targets (#2707) 2026-11-23 03:33:12 +07:00
Terra854 4255a185db Resolve nested DrawingML compatibility choices (#2851) 2026-11-23 03:33:02 +07:00
Terra854 8adecb1cb0 Preserve short SVG elliptical arc sweeps (#2835) 2026-11-23 03:31:53 +07:00
Terra854 33e36c8cb7 Preserve finite SVG smooth control reflections (#2832) 2026-11-23 03:29:13 +07:00
Dylan M. Taylor 684a0a90fe develop: bound shared Camera Raw sharpening detail (#3091) 2026-11-22 15:17:52 -05:00
Dylan M. Taylor 49f38d0e30 tiff: expose plain RGBA16 without the raster facade (#3082) 2026-11-22 15:16:58 -05:00
Dylan M. Taylor 0fc19936f8 android-res: report partial XML at event and nesting limits 2026-11-22 13:49:08 -05:00
Dylan M. Taylor b24eba6475 Merge pull request #3068 from storytold/feat/778-aaf-borrowed-property-framing
aaf: share borrowed property stream framing
2026-11-22 13:48:36 -05:00
Dylan M. Taylor 81a5c494da Merge pull request #3066 from storytold/feat/778-shared-wal-committed-prefix
sqlite: share committed WAL checksum scanning
2026-11-22 13:48:17 -05:00
Dylan M. Taylor e16f2f2be8 android-res: bound ARSC framing to declared headers 2026-11-22 13:45:23 -05:00
Dylan M. Taylor 22a80f2965 develop: extract PhotoCraft Camera Raw Filter into craft_develop::camera_raw (#587) (#3081)
* develop: extract PhotoCraft Camera Raw Filter into craft_develop::camera_raw (#587)

* develop: move serde_json to dependencies for camera_raw::migrate_to_develop_settings

* develop/camera_raw: fix util path in local_tone test
2026-11-22 13:41:16 -05:00
Dylan M. Taylor 01990d4859 Merge pull request #3076 from storytold/feat/778-tga-top-left-raw
TGA: share footerless top-left sequence writing
2026-11-22 13:18:50 -05:00
Dylan M. Taylor b017c1124d Merge pull request #3070 from storytold/feat/778-shared-classic-hpgl
plotter: share classic HP-GL command serialization
2026-11-22 13:17:13 -05:00
Dylan M. Taylor e683cb299f Merge pull request #3067 from storytold/feat/778-strict-jpeg-orientation
jpeg: share strict EXIF orientation framing
2026-11-22 13:17:05 -05:00
Dylan M. Taylor c56fbd8271 Merge pull request #3075 from storytold/dot/shared-metafile-eof-diagnostic
Share the legacy EMF and WMF EOF diagnostic
2026-11-22 13:16:57 -05:00
Dylan M. Taylor 4f2d0f5a44 sqlite: cover a WAL frame checksum mismatch 2026-11-22 13:16:45 -05:00
Dylan M. Taylor 9ac4d59e64 Merge pull request #3069 from storytold/feat/778-plain-rgba16-tiff
tiff: share the plain RGBA16 writer
2026-11-22 13:01:01 -05:00
Dylan M. Taylor 72211adc81 android-res: split locale formatting from configuration qualifiers 2026-11-22 13:00:45 -05:00
Dylan M. Taylor 27be7518c9 Merge pull request #3065 from storytold/feat/587-legacy-gaussian-curves
develop: share legacy Gaussian curves and LUT tails
2026-11-22 13:00:36 -05:00
Brandon Thomas bfdaa2b71d android-res: share AXML and ARSC wire readers
Extract the Craft Anything implementation at 8cec25d without changing limits or data models. Retain provenance for subsequent Afloat, BFlat, and RRFZ changes in the crate README.
2026-11-22 12:23:37 -05:00
DylanMTaylor 7e88389c8e Document legacy JPEG zero-marker handling 2026-11-22 12:20:57 -05:00
Dylan M. Taylor 9f18c4e96c tga: share footerless top-left sequence writing 2026-11-22 12:19:21 -05:00
dotCooCoo 5239b47ad2 Share the legacy EMF and WMF EOF diagnostic
Extract the original diagnostic from dotCooCoo’s VectorCraft import commit 9efde43f1d827b95b838b75cc5d310362a9814f7.
2026-11-22 12:15:08 -05:00
DylanMTaylor b06acb3d0a Use fixed-width AAF property index chunks 2026-11-22 12:14:09 -05:00
Dylan M. Taylor 57999e775d sqlite: use fixed-size chunks in WAL fixture 2026-11-22 12:13:55 -05:00
Dylan M. Taylor 7039de09fa plotter: share classic HP-GL command serialization 2026-11-22 11:18:44 -05:00
Dylan M. Taylor 983a116784 tiff: share the plain RGBA16 writer 2026-11-22 11:06:35 -05:00
Dylan M. Taylor e084f8c1f6 jpeg: share strict EXIF orientation framing 2026-11-22 11:04:24 -05:00
Dylan M. Taylor 796a265521 Share borrowed AAF property stream framing 2026-11-22 11:04:07 -05:00
Dylan M. Taylor 28ee9742fd sqlite: share committed WAL checksum scanning 2026-11-22 11:03:48 -05:00
Dylan M. Taylor b2bbfa6f56 develop: share legacy Gaussian curves and LUT tails 2026-11-22 10:54:20 -05:00
dotCooCoo e751a7a49c craft-cdr: refuse previews that preview cannot read whole
preview now reads a DISP chunk only when its first 4 bytes are
08 00 00 00 (every DISP chunk in the sample files starts so) and its
bitmap has a 40-byte info header, a plane count of 1 and uncompressed
pixels: compression 0 at 1, 4, 8, 16, 24 or 32 bits, or compression 3
(color masks) at 16 or 32 bits, as the bitmap info header page states.
A color table may not hold more than 2^bit count colors, and the
image size must be 0 or the rows' size, as in every sample. Other bit
counts with those compressions fail as damaged; other header lengths
and compressions are refused as unsupported. A DISP chunk of another
kind, or a bitmap with another header length or compression, is passed
over, and a file with no later DISP bitmap that preview reads is
refused as unsupported. Before this, a bit count of 0, compression 6 or a header
of another length gave a BMP file whose pixel offset was wrong, and
the rows were checked only for compressions 0 and 3. The row size is
now computed in 64 bits, so 32-bit targets accept the same bitmaps as
64-bit ones. The BMP file ends with the last row: bytes after it in the
chunk are left out, and the file's memory is reserved fallibly.

A RIFF file without a DISP bitmap now gives Ok(None) only when its
last chunk ends where the form's length says, inside the file. A chunk
that runs past the form, a partial chunk header at the end, a file cut
short or a form length too short for the form type fails as damaged,
since the missing bytes may hold the picture. A file cut short still
gives a DISP chunk it holds whole.

A version 2 file keeps a 1-bit picture (R40) that preview does not
read, so preview refuses it as unsupported instead of reporting no
picture. Version 1 still gives Ok(None).

Tests cover each of these cases, a package that holds both thumbnail
members, and the package member count limit. The hostile-input
property tests in tests/it/read.rs now also run preview, including
deflated thumbnail members and a compressed list before the DISP
chunk, and check that a package without a picture member gives
Ok(None) whatever its damaged drawing holds.

The README and the preview doc comment say that preview does not check
the drawing's version. PROVENANCE.md row R76 records that no sample
package's RIFF stream has a DISP chunk, and the crate description
mentions the preview.
2026-11-22 07:42:50 -08:00
FredApps 1507e63e6a develop: test local tone mapping across crop and tile coordinates (#3057) 2026-11-22 21:56:12 +07:00
dotCooCoo 430b7425fc craft-cdr: read the picture a .cdr file keeps of its drawing
`preview` returns that picture without reading the drawing, so an app can
show something for a file whose drawing it can't read. In versions 4 to
13 the picture is the RIFF form's `DISP` chunk, a bitmap that is returned
as a BMP file. Packages keep it as `metadata/thumbnails/thumbnail.bmp`
(versions 14 to 16) or `previews/thumbnail.png` (17 on). Versions 1 to 3
keep none.

The `DISP` walk stays within the RIFF form and the chunk count limit, and
the bitmap's color table, masks and rows must fit the chunk. A package
member is read within the member and inflate limits, with its CRC-32 and
signature checked. Rows R75 and R76 in PROVENANCE.md give the sources.
2026-11-22 06:48:52 -08:00
Dylan M. Taylor 8300e3d448 fix(develop): apply deferred DNG linearization after OpcodeList1 (#3050)
* fix(develop): apply deferred DNG linearization after OpcodeList1

* test(develop): construct the DNG fixture with the CFA API

* docs(develop): describe deferred DNG linearization contract
2026-11-22 09:16:29 -05:00