Merge pull request #6366 from dotCooCoo/fix/issue-5632

Part of #5632: Convert to Grayscale stores an image with one gray channel
This commit is contained in:
BFlat
2026-11-10 07:50:43 +07:00
committed by GitHub
4 changed files with 152 additions and 11 deletions
+2
View File
@@ -2507,6 +2507,8 @@ the image; linked images are left alone) and the tiles of pattern fills and stro
pattern swatch, e.g. "Dots 2"; the original pattern is untouched). Colorized image fills are recolored when fills are in
scope, but their pixels are never recolored. `includeImages: false` leaves other images' pixels unchanged.
For `edit.colors.*`, `fill: false` leaves colorized image fills unchanged. `recolor.apply` always includes fills.
`edit.colors.toGrayscale` and `edit.colors.adjustBalance` with `mode: "gray"` and `convert: true` store an embedded image
with one gray channel, so a PDF writes it in gray.
`includePatterns: false` leaves patterns out. The Blend commands also grade gradient meshes, which keep their shading.
`edit.colors.saturate` needs `intensity`, a number from -100 to 100 (a number outside the range counts as its nearest
end). Without one, or with a value that is not a number, it answers `` missing number `intensity` `` and changes nothing.