Commit Graph
10 Commits
Author SHA1 Message Date
FredApps 6937d937f9 Merge main (4edf1ee286) into fix-2970-export-sharpness
Clean merge of main; engine clippy (all targets, -D warnings) passes locally.
2026-11-26 21:21:19 +07:00
FredApps 1f8e1ef1ad Merge branch 'main' into fix/1619-shutter-precision
# Conflicts:
#	crates/catalog/src/model.rs
#	crates/engine/src/files/tests.rs
#	docs/parity-checklist.md
2026-11-13 20:49:01 +01:00
radialmonsterandClaude Opus 5.5 aa98d48fa5 Export tests: pin the new output sharpening's pixels
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ti8KemZbjE2ZgHgV1q1BM
2026-11-07 04:21:04 -05:00
radialmonsterandClaude Opus 5.5 6e9040406f Export sharpening: tolerate NaN and infinite float samples
A non-finite F32 sample gave the luma unsharp mask inverted or NaN local
bounds, and f32::clamp panics on those. Float samples that are not finite
are now sharpened as black, and the overshoot limit uses max/min, which
never panics. Regression test with a 3x3 image holding NaN and inf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ti8KemZbjE2ZgHgV1q1BM
2026-11-07 04:21:04 -05:00
radialmonsterandClaude Opus 5.5 8246dd00d6 Export: downscale with Lanczos-3 and sharpen with a Gaussian luma USM (#2970)
Exports shrank with the preview's Mitchell filter, which left small exports
(800 px web sizes) visibly soft even with output sharpening on. Exports now
downscale with Lanczos-3 (RenderRequest::downscale = Sharp, CPU and GPU);
previews and thumbnails keep Mitchell.

Output sharpening is an unsharp mask on luma at output scale: a Gaussian of
0.7 / 0.8 / 1.0 output px for screen / glossy / matte, amount x0.5 / x1 /
x1.6 for low / standard / high, with overshoot clamped to 10 % of the local
3x3 range so edges get no halos or colour fringes. Full-size exports keep
their size and, with sharpening off, are bit-identical to before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ti8KemZbjE2ZgHgV1q1BM
2026-11-07 04:21:03 -05:00
a856df5f42 Write camera make and lens make to EXIF on export (#3828)
* Write camera make and lens make to EXIF on export

PTGui and similar stitching tools read EXIF Make/LensMake to identify camera and lens; without them, exported JPEGs from CR2 files are not recognized the same way as Adobe's export.

Add make and lens_make fields to catalog Meta, populate them from the raw's EXIF on import in meta_of, and write them as EXIF Make and LensMake tags in export_metadata.

Test: export_writes_camera_make_and_lens_make_to_exif failed before the change and passes after.

* Export: read Make and LensMake on import and write them, with Model on its own

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Export: strip the maker from Model only as a separate word

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 10:56:51 +01:00
FredApps 1d7d188846 Reconcile shutter precision with split import/export modules
Preserve main's module boundaries and current metadata behavior. Move the shutter changes and regressions into the corresponding probe, encoding and test modules. Preserve both parity records. Hosted CI must validate this refreshed head.
2026-10-30 08:13:52 +01:00
Dylan M. Taylor c9d44f7804 style(engine): expand module imports explicitly 2026-10-28 03:24:18 +00:00
NetterSilverandClaude Opus 5.5 3ce8dbc55b Drop copies and libm calls from 8-bit export encoding
- finish_8bit/finish_deep hand back the render itself when there is no
  output sharpening and no watermark. Before, every export cloned the
  image (~100 MB at 24 MP) and output_sharpen built a ~290 MB float copy
  of it even for SharpenFor::None, all on one thread.
- Output sharpening's box blurs run row-parallel (par_rows); each pixel
  is computed as before.
- The parallel JPEG encoder converts each band's rows to YCbCr inside the
  band's task instead of first filling whole-image planes (~290 MB for
  4:4:4 at 24 MP, written once and read back).
- fdct_quant rounds with plain arithmetic (round_i16) instead of
  f32::round, a libm call per coefficient without SSE4.1; it equals
  `x.round() as i16` for all 2^32 inputs.

Output is byte-identical (pinned by encoded_bytes_are_pinned and
sharpened_pixels_are_pinned, whose hashes come from main).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 15:43:41 +01:00
aiongg e3c594cab8 refactor(lightcraft-engine): split export.rs into export/ 2026-10-26 21:08:55 +00:00