Files
photocraft/crates/engine-vector
RickiNano 1a63bb9068 Auto-Align Vignette Removal: thin K when C, M and Y can't carry it; Lab without a cast (#14197)
- CMYK: the light the inks let through is brightened once and re-encoded.
  C, M and Y thin out while they can carry it, and K thins out as far as
  the brightest light needs, so a grey printed in K alone brightens too.
  Where C, M and Y can carry it, the result is as before.
- Lab: the estimate reads one channel, L as sRGB-encoded luminance, and
  the correction brightens that light and turns it back into L. a and b
  grow with (L* + 16), as they do when the light itself is brighter, so a
  neutral pixel stays neutral instead of taking a cast.

New tests: shifted_vignetted_cmyk_layers_in_black_ink_alone_come_out_flatter_with_their_corners_brightened,
shifted_vignetted_lab_layers_come_out_flatter_without_a_colour_cast.
Both fail without the change.
2026-11-29 12:22:51 +01:00
..