mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 05:52:09 +00:00
Merge pull request #9102 from dotCooCoo/feat/colorized-image-overprint
Images: Overprint Fill makes a colorized image's color overprint
This commit is contained in:
+17
-4
@@ -5140,12 +5140,25 @@ on OK. Cancel restores the original artwork.
|
||||
|
||||
Each fill and stroke (and each character's fill and stroke) can overprint: its inks print over the inks below instead
|
||||
of knocking them out. `object.setOverprint {fill?, stroke?, item?, ids?}` sets it (groups set their contents, type its
|
||||
characters too; `item` aims at one appearance item) and `attributes.info {ids?}` reads it back (`null` where the
|
||||
characters too; `item` aims at one appearance item; without `item`, `fill` on a grayscale or 1-bit image colorized by
|
||||
`paint.setFill` sets whether its color overprints) and `attributes.info {ids?}` reads it back (`null` where the
|
||||
objects differ). Overprint Preview (`view.overprintPreview`) and Separations Preview show it; rendering approximates
|
||||
it by darkening (the stronger ink of each plate wins, so a colour overprinting itself stays that colour). Older files that listed Overprint Black objects in the document get the flags on load.
|
||||
it by darkening (the stronger ink of each plate wins, so a colour overprinting itself stays that colour). A colorized
|
||||
image overprints as a whole: when one of its fills or strokes with an opacity above 0 draws a shape (Convert to Shape
|
||||
or Outline Object) and does not overprint, the whole image knocks out in the previews and on printed plates. On
|
||||
printed plates an image whose pixels do not take its color (a preview of its file) knocks out and prints as those
|
||||
pixels. Older files that listed Overprint Black objects in the document get the flags on load.
|
||||
PDF export writes them with `advanced.overprint: "preserve"` (the default): each overprinting fill and stroke sets a
|
||||
graphics state with `/OP true /op true /OPM 1` (`/OPM 0` in PDF/A). With `discardWhiteOverprint` (`document.setup`, on by
|
||||
default) white ones knock out instead; `"discard"` writes none.
|
||||
default) white ones knock out instead, but not a tint above 0% of a spot swatch, which prints as that ink;
|
||||
`"discard"` writes none. EPS export (`overprints: "preserve"`, the default) turns
|
||||
overprinting on for a colorized image's color as it does for fills and strokes, except a white color with
|
||||
`discardWhiteOverprint` on, which knocks out unless it is such a spot tint. PDF export writes an overprinting
|
||||
colorized image in a gray or CMYK color in only the process inks the color puts down, and EPS export does too (one
|
||||
DeviceN image at Level 3, one Separation image per ink at Level 2). The previews and printed separations show a
|
||||
colorized image knocking out when it has a visible effect of its own other than a warp or a geometry effect (a drop
|
||||
shadow, a glow, a raster effect or a color adjustment). PDF and EPS export leave raster effects out and still
|
||||
overprint such an image.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"object.setOverprint","params":{"ids":[12],"stroke":true}}}
|
||||
@@ -15514,7 +15527,7 @@ document's inks for print, as one undo step:
|
||||
| `scope` | `selection`, `document` (the selection, or the document while nothing is selected) | What it fixes; `ids` stand for the selection |
|
||||
| `inkLimit` | total ink % 1…400, 0 off (off) | CMYK colours (solid, gradient stops, gradient meshes) with more ink than this are scaled down to it; colours of spot swatches and Registration stay |
|
||||
| `excludePureBlack` | bool (true) | Black-only CMYK and grey colours keep their ink |
|
||||
| `removeWhiteOverprint` | bool (false) | White fills and strokes, and characters', stop overprinting |
|
||||
| `removeWhiteOverprint` | bool (false) | White fills and strokes, characters' and the white color of a colorized image stop overprinting |
|
||||
| `overprintBlack` | black % 1…100, 0 off (off) | Black-only and grey fills and strokes this dark or darker overprint, as `edit.colors.overprintBlack` sets it (not spot-linked or rich blacks) |
|
||||
| `textOnly` | bool (false) | Overprint Black on type only |
|
||||
| `fill`, `stroke` | bool (true) | Which paints the fixes reach |
|
||||
|
||||
Reference in New Issue
Block a user