* raw: consume merged DJI DNG and Sony ZV-E10 fixes (#587)
Pin craft-raw to merged f589ff48, carrying craft-libs #2042 and #2039. Preserve the Fuji Kelvin adapter and other application codec pins. Bridge the RAW writer TIFF identity explicitly and regenerate Flatpak sources.
* raw: align engine preview fallback test TIFF error identity
* Match bundled camera profiles to Nikon model spellings
NEF files without colour matrices depend on the bundled camera profile for colour; missing it leaves the image flat and desaturated.
Normalize the model name (case, spacing and separators) when looking up bundled profiles so variant EXIF spellings find the same profile.
Test: bundled_profile_matches_nikon_model_spelling_variants failed before the change and passes after.
* Find the bundled Nikon Z 8 profile under the Z8 spelling and rebuild older previews
Add an explicit alias for the Exif spelling "NIKON Z8", which the case and spacing fold does not cover.
Advance the camera look version so previews made without the bundled profile are rebuilt.
Test: bundled_profile_matches_nikon_model_spelling_variants and a_proxy_from_the_previous_look_version_is_stale pass.
* Address review for pull request 3861
* Address remaining review requests
* Address review for pull request 3861
* Format the files this pull request changes
* Repair review branch integration
* Address remaining review requests
* Address review for pull request 3861
* Format the files this pull request changes
* Repair review branch integration
---------
Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
* Decode AVIF through shared image codecs
* Include JPEG encoder distribution notices
* Exercise AVIF HDR decoding through public API
* Preserve AVIF source bit depth
* Test AVIF alpha through public entrypoints
* Update AVIF round trip for supported decode
* Document native AVIF decode support
* Clarify import feature gates
* Keep RAW fixtures valid under shared container and strip bounds
* Include sample-to-chunk mappings in CR3 fixtures
* Find Similar test: a photo read from memory isn't a missing read (#3823)
The second search after a stop plans its reads after frames in which the
loupe and filmstrip decoded photos; those are measured from memory
(source_ref takes the cached source), so the drive sees fewer than 12 reads
on a loaded machine. Check instead that no file is read twice, the searched
photo above all; the answer still needs every photo's signature.
* Find Similar test: every photo is measured after the resumed search
* Bound AVIF padded picture storage and preserve integer source flag
* Size the AVIF picture-store budget for the stored canvas, not the clap-cropped size
* Attribute the AVIF lossless decode fixture
* Keep the AVIF clap test helpers free of unwrap for the codecs lint gate
* lightcraft: keep the newer craft-cms pin after merging main
---------
Co-authored-by: Bruno-Alumn <171815746+Bruno-Alumn@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
* codecs,raw,preview,meta,engine: cut over TIFF/JPEG/focus to craft-libs and fix CI
* docs: update parity-checklist paths after craft-raw/craft-metadata cutover
* Remove unused codec workspace deps and cut examples over to craft-image-codecs
* chore: update Cargo.lock after removing unused codec deps
* security: importers and preset application index instead of rescanning
* address review: keep first match when indexing names, skip used mask ids, move presets instead of cloning
* address review: a dry-run import keeps its rows, not the parsed presets
* merge main into fix/sec-importers-indexed
* address review: key duplicate presets by the settings value, so 0.0 and -0.0 are one preset
* preset import index: key numbers as f64 so 0 and 0.0 cannot collide
* security(pipeline): one dab budget per brush mask; linear-time defringe min/max
* address review: drop min_filter transpose buffers once consumed
* address review: an over-budget brush mask fails the render instead of dropping later strokes
* merge main into fix/sec-pipeline-render-work; the web worker rejects an over-budget brush mask
* address review: validate brush budgets on the mask's own frame; an exactly filled budget is not over it
* security(meta): bound namespace declarations in scope while parsing XMP
* address review: a readable sidecar that fails the merge read-back is kept and the save fails
* address review: a sidecar over the XMP complexity limit is kept and the save fails
* merge main into fix/sec-xmp-namespace-bound
* address review: text with no rdf:RDF element is backed up and replaced, not kept as readable
* xmp merge: open a self-closing rdf:RDF element instead of replacing the sidecar
Use craft-gainmap from craft-libs for gain map metadata and arithmetic
* Use craft-heif from craft-libs; remove crates/heif
lightcraft-heif moved to craft-libs unchanged as craft-heif
(storytold/craft-libs#784), so PhotoCraft can share it. The layer table,
the heif CI step and the change triggers drop the local crate; a workspace
file change (which a craft-heif rev bump is) still runs the heif step.
* Pin craft-heif to the merge of storytold/craft-libs#794
* docs: the HEIF rows point at craft-heif, not the removed crates/heif
* Use craft-gainmap from craft-libs for gain map metadata and arithmetic
crates/codecs/src/gainmap.rs keeps the JPEG layout (encode_jpeg, read_jpeg,
is_gain_map_jpeg) and re-exports GainMapMeta, GainImage, GainMapOptions,
ISO_URN, compute and apply from craft-gainmap, which is this file's metadata
and arithmetic moved to craft-libs (storytold/craft-libs#904). The tests of
the moved code went with it.
* craft-heif's Options has a chroma field at this rev: keep the libheif upsampling LightCraft had
* raw: count the chunks a TIFF declares from its offsets table
craft-tiff builds at most one chunk descriptor per byte of file
(craft-libs#827), so a grid of tiles sharing one payload lists fewer
chunks than the image declares. Compare the offsets table, which is the
source of truth, so such a file reaches the byte-accounting check and is
refused for the data it actually holds.
* Use craft-tiff from craft-libs; remove crates/tiff
lightcraft-tiff moved to craft-libs unchanged as craft-tiff
(storytold/craft-libs#783), the first step of sharing RAW support with
PhotoCraft (storytold/craft-libs#587). The layer table drops tiff and its
intra-layer ordering before raster.
* Pin craft-tiff to the merge of storytold/craft-libs#795
* mask.exportEffects refuses originals and sidecars and writes atomically
* check_write_target refuses unresolvable .. components in a missing destination folder
* test: accept either refusal for a missing/.. destination (Windows resolves .. lexically)
* security(engine): read user-named files through the opened regular file under a byte cap
* address review: compare the probe error with the std::fs::read error
* address review: open files for reading without waiting for a FIFO writer
* security(meta): linear entity decoding, indexed keyword de-duplication, bounded XMP path building
* address review: decode zero-padded numeric references in the three entity decoders