- 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.
- The estimate read CMYK samples as they are stored, as ink, which grows
towards darkened corners, so it fitted ink growth and then brightened
the light. It now reads the red, green and blue light the inks let
through. The correction brightens the light of C, M and Y only: K's
light multiplies theirs, so brightening it too would brighten twice.
- With Geometric Distortion fitting a nonzero k1, the reference's
placement carries that k1 but its pixels stay as they are. The
estimate now reads the reference warped by its placement, as it reads
the layers that moved, and its correction measures radii with k1 = 0,
in its own pixels.
New test: shifted_vignetted_cmyk_layers_come_out_flatter_with_their_corners_brightened.
edit.autoAlignLayers takes vignetteRemoval (bool, default false). It
estimates one radial falloff from the layers' overlaps with Photomerge's
estimator, read on a copy box-averaged to at most 1024 px across, with
exposure gains solved beside it and dropped, then divides the falloff out
of every aligned layer, the reference of a planar layout included unless
its pixels are locked. Collage and Reposition ignore it, as the dialog
clears it there. The result carries the falloff, and a warning when the
overlaps show none (layers that nearly coincide) or a locked reference
was left as it was. A wrong-typed value is an error.
`clip_bytes` trimmed trailing spaces even when it didn't cut anything,
so a sanitized prefix such as `A ` (from `A .`) lost its space in a
short file name. It now returns a part that fits unchanged and trims
only the end a cut leaves.
When a part of the file name was cut, the bytes left over (less than one
character of it) could still hold a later, lower-priority part: a cut
comp name could lose its last character while a one-letter comment
stayed. Now a cut prefix leaves out the name and comment, and a cut
name leaves out the comment.
The comp comment is appended to the file name, and nothing limited the
length, so a comment of a few sentences gave a name past the 255-byte
file name limit and the save stopped the whole export at that comp.
`comp_file_name` now builds `<prefix>_<index>_<name>[_<comment>].<ext>`
within 255 bytes (which also keeps it within Windows' 255 UTF-16 units).
A name that doesn't fit loses the end of its comment first, the whole
comment with its `_` when none of it fits, then of the comp name, then
of the prefix. The index and extension always stay, and every cut falls
between characters.
The new test exports a comp with a six-sentence comment (with umlauts)
and the comp after it, as PNG and TIFF; without the change the export
fails at the first comp. The names tests now export into a folder per
run, so the PNG tests no longer share one.
The arrow-key nudge of the selected anchors joins the app's run of nudges
(nudge_bundle, as the Move tool does): nudges of the same anchors share one
coalesce key, so the engine folds them into one History step, named
"Nudge Path" through path.moveAnchors' stepName. Another anchor selection,
any other edit or a pause starts a new step.
Auto-Blend collected only the selected pixel layers, so with a type layer or a smart object in
the selection it blended the pixel layers and ignored the rest. The reference application
refuses: the command is not available and no history state is added.
Gives Auto-Blend its own enabled check (a type layer or smart object among the selected layers
makes it unavailable) and the same guard at the start of the run. Auto-Align keeps its check.
Revealing the bottom must leave the composite as the complementary masks drew it. Three more cases broke that:
- Blend If on the top hides top pixels the weights count as covering; the reveal showed the bottom there.
- A bottom whose Advanced Blending acts (a deep knockout with Transparency Shapes Layer off) knocks out
wherever its mask shows, so a reveal-all mask cleared the layers beneath past the blended area.
- content_bounds leaves out pixels equal to the surface's default, so an opaque default showed past the
blended area once the mask revealed it.
Each now keeps the old masks, with a regression that fails without the check.
With Path Selection, Delete removes the selected components of a shape
layer, saved path or vector mask (path.deleteComponents), or the targeted
saved path when nothing is selected, instead of deleting the layer.
The Properties panel Fill and Stroke popovers now hold the screen pick and
feed the sampled colour back, as the options bar does.
Fixes#13269
Co-authored-by: Dan <[email protected]>