From c067c207887f1de298ffa3de36e88f7be54d71e1 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sun, 22 Nov 2026 09:38:04 -0800 Subject: [PATCH] Images: colorized image overprint follows every painting effect and gray ink in EPS - Overprint Preview, Separations Preview and printed separations show a colorized image knocking out when it has any visible effect of its own that paints colors (a shadow, a glow, a raster effect, a color adjustment or a plug-in effect). Only the geometry effects leave it overprinting; a test keeps that list equal to the geometry effects of the effect catalog. - EPS export writes an overprinting colorized image in a gray color as black ink alone (a DeviceN image at Level 3, a Separation image at Level 2), so it keeps the cyan, magenta and yellow below. - On an EPS separation plate, an overprinting image without the plate's ink is left out only while overprints are preserved. - Reading a legacy .ai file, a colorized image mask takes the fill overprint in force, as it takes the fill color: its own O, or the last O before it. --- crates/doc/src/overprint.rs | 36 ++++++++++++++++++--- crates/effects/src/tests.rs | 8 +++++ crates/eps/src/import/ai/read.rs | 4 --- crates/eps/src/import/ai/read/art.rs | 6 ++-- crates/eps/src/import/ai/read/containers.rs | 1 - crates/eps/src/import/ai/read/ops.rs | 5 +-- crates/eps/src/legacy_ai/tests.rs | 15 +++++---- crates/eps/src/scene.rs | 23 +++++++++---- crates/eps/src/tests.rs | 22 ++++++++++--- docs/mcp.md | 8 +++-- docs/target-app-parity.md | 2 +- 11 files changed, 91 insertions(+), 39 deletions(-) diff --git a/crates/doc/src/overprint.rs b/crates/doc/src/overprint.rs index 40b7f8078e..9bfa740756 100644 --- a/crates/doc/src/overprint.rs +++ b/crates/doc/src/overprint.rs @@ -185,18 +185,41 @@ fn darkens(overprint: bool, blend: BlendMode, paint: &Paint, discard_white: bool overprint && blend == BlendMode::Normal && !(discard_white && is_white(paint)) } +/// The effects that only move or reshape what an object draws, keeping its own colors, besides +/// those whose ids start with `warp.`, `convertToShape.` or `addon.path.` ([`reshapes_only`]). +const RESHAPING_EFFECTS: [&str; 12] = [ + "distort.freeDistort", + "distort.puckerBloat", + "distort.roughen", + "distort.transform", + "distort.tweak", + "distort.twist", + "distort.zigZag", + "path.offsetPath", + "path.outlineObject", + "path.outlineStroke", + "stylize.roundCorners", + "stylize.scribble", +]; + +/// Whether effect `id` only moves or reshapes what an object draws ([`RESHAPING_EFFECTS`]). +/// Any other effect (a shadow, a glow, a raster effect, a color adjustment, a plug-in effect) +/// paints colors of its own. +pub fn reshapes_only(id: &str) -> bool { + ["warp.", "convertToShape.", "addon.path."].iter().any(|p| id.starts_with(p)) || RESHAPING_EFFECTS.contains(&id) +} + /// Whether colorized image `n` is drawn overprinting as a whole: its color overprints /// ([`Node::colorize_overprints`]) with the Normal blend and is not white with `discard_white`, -/// none of its own visible effects paints past the image (a drop shadow, an outer glow or a blur, -/// [`crate::symbol_nine_slice::PAINTED_EFFECTS`]), and each row that draws ([`image_row_draws`]) -/// overprints that way too. A colorized image's color is not a fill row, so the whole node -/// overprints or none of it does. +/// each of its own visible effects only reshapes it ([`reshapes_only`]), and each row that draws +/// ([`image_row_draws`]) overprints that way too. A colorized image's color is not a fill row, so +/// the whole node overprints or none of it does. pub fn image_overprints_whole(n: &Node, discard_white: bool) -> bool { let row = |i: &crate::AppearanceItem| match i { crate::AppearanceItem::Fill(l) => darkens(l.overprint, l.blend, &l.paint, discard_white), crate::AppearanceItem::Stroke(l) => darkens(l.overprint, l.blend, &l.paint, discard_white), }; - let paints_past = n.appearance.effects.iter().any(|e| e.visible && crate::symbol_nine_slice::PAINTED_EFFECTS.contains(&e.id.as_str())); + let paints_past = n.appearance.effects.iter().any(|e| e.visible && !reshapes_only(&e.id)); n.colorize_overprints() && n.extras().colorize.as_deref().is_some_and(|p| darkens(true, n.blend, p, discard_white)) && !paints_past @@ -478,8 +501,11 @@ mod tests { }; assert_eq!(blend("stylize.dropShadow", true), BlendMode::Normal, "a drop shadow is not darkened with the image"); assert_eq!(blend("stylize.outerGlow", true), BlendMode::Normal, "nor an outer glow"); + assert_eq!(blend("stylize.innerGlow", true), BlendMode::Normal, "nor an inner glow"); + assert_eq!(blend("artistic.neonGlow", true), BlendMode::Normal, "nor a raster effect"); assert_eq!(blend("stylize.dropShadow", false), BlendMode::Darken, "a hidden effect draws nothing"); assert_eq!(blend("distort.roughen", true), BlendMode::Darken, "a geometry effect reshapes the image itself"); + assert_eq!(blend("warp.arc", true), BlendMode::Darken, "so does a warp"); } #[test] diff --git a/crates/effects/src/tests.rs b/crates/effects/src/tests.rs index b349a2ce14..3b0acaa821 100644 --- a/crates/effects/src/tests.rs +++ b/crates/effects/src/tests.rs @@ -148,6 +148,14 @@ fn nine_slice_painted_effects_are_raster_effects() { } } +/// The effects that leave a colorized image overprinting as a whole are the geometry effects. +#[test] +fn image_overprint_reshaping_effects_are_the_geometry_effects() { + for id in crate::catalog::catalog_index().keys() { + assert_eq!(vectorcraft_doc::overprint::reshapes_only(id), is_geometry(id), "{id}"); + } +} + #[test] fn open_paths_stay_open() { let line = PathData::single(SubPath::polyline(&[Point::new(0.0, 0.0), Point::new(50.0, 20.0), Point::new(100.0, 0.0)], false)); diff --git a/crates/eps/src/import/ai/read.rs b/crates/eps/src/import/ai/read.rs index 871ce091ca..11ebe2aac6 100644 --- a/crates/eps/src/import/ai/read.rs +++ b/crates/eps/src/import/ai/read.rs @@ -531,9 +531,6 @@ struct Reader<'a> { /// The last object read is an image, and only the operators that end its raster (`XH`, `Xr`, /// `N`) came since: its name and opacity mask still follow. image_tail: bool, - /// An `O` came since the last object: an image mask read now takes its fill overprint. One - /// set for a path before it does not reach the image. - image_overprint: bool, nodes: usize, /// What layers that show have that this reader doesn't read (errors). unsupported: BTreeSet, @@ -843,7 +840,6 @@ impl<'a> Reader<'a> { foreign_data: None, after_object: false, image_tail: false, - image_overprint: false, nodes: 0, unsupported: BTreeSet::new(), unknown: BTreeSet::new(), diff --git a/crates/eps/src/import/ai/read/art.rs b/crates/eps/src/import/ai/read/art.rs index c66bed9238..5b85bbae6a 100644 --- a/crates/eps/src/import/ai/read/art.rs +++ b/crates/eps/src/import/ai/read/art.rs @@ -821,8 +821,8 @@ impl<'a> Reader<'a> { } /// Add an image object with the state's transparency, `mask` as its opacity mask and - /// `colorize` as the color that colorizes it, which overprints when an `O` written since the - /// last object turned the fill overprint on. + /// `colorize` as the color that colorizes it, which overprints while the fill overprint (`O`) + /// in force is on. fn add_image_colorized(&mut self, im: ImageObject, mask: Option, colorize: Option, hidden: bool) -> Result<(), String> { let gs = self.gs.clone(); let mut node = self.new_node(NodeKind::Image(Box::new(im)), &gs); @@ -830,7 +830,7 @@ impl<'a> Reader<'a> { node.blend = gs.blend; node.knockout_shape = gs.knockout_shape; node.extras_mut().mask = mask.map(Box::new); - node.extras_mut().colorize_overprint = colorize.is_some() && self.image_overprint && gs.overprint_fill; + node.extras_mut().colorize_overprint = colorize.is_some() && gs.overprint_fill; node.extras_mut().colorize = colorize.map(Box::new); self.add(node, hidden)?; self.image_tail = self.after_object; diff --git a/crates/eps/src/import/ai/read/containers.rs b/crates/eps/src/import/ai/read/containers.rs index 551193839b..2a14ce1c24 100644 --- a/crates/eps/src/import/ai/read/containers.rs +++ b/crates/eps/src/import/ai/read/containers.rs @@ -62,7 +62,6 @@ impl<'a> Reader<'a> { None => return Err("it has art outside its layers".into()), } self.after_object = true; - self.image_overprint = false; Ok(()) } diff --git a/crates/eps/src/import/ai/read/ops.rs b/crates/eps/src/import/ai/read/ops.rs index 45c8153f61..65875c5a52 100644 --- a/crates/eps/src/import/ai/read/ops.rs +++ b/crates/eps/src/import/ai/read/ops.rs @@ -286,10 +286,7 @@ impl<'a> Reader<'a> { "p" | "P" => self.pattern_paint(w, &vals), // A pattern's definition ends. "E" if self.pattern.is_some() => self.done = true, - "O" => { - self.gs.overprint_fill = Self::nums(&vals).last() == Some(&1.0); - self.image_overprint = true; - } + "O" => self.gs.overprint_fill = Self::nums(&vals).last() == Some(&1.0), "R" => self.gs.overprint_stroke = Self::nums(&vals).last() == Some(&1.0), "XR" => self.gs.rule = if Self::nums(&vals).last() == Some(&1.0) { FillRule::EvenOdd } else { FillRule::NonZero }, // Show Center (§12): 1 shows the center point of the paths that follow, and 0 leaves diff --git a/crates/eps/src/legacy_ai/tests.rs b/crates/eps/src/legacy_ai/tests.rs index 2e0a4db70a..e43f2a1227 100644 --- a/crates/eps/src/legacy_ai/tests.rs +++ b/crates/eps/src/legacy_ai/tests.rs @@ -1067,10 +1067,10 @@ fn colorized_images_keep_their_color() { assert_eq!(out.warnings, [IMAGE_ALPHA]); } -/// A colorized image mask overprints when an `O` written for it says so, and not because the -/// path before it overprints. +/// A colorized image mask takes the fill overprint in force: its own `O`, or without one the +/// last `O` before it, as it takes the fill color. #[test] -fn a_colorized_image_mask_takes_only_its_own_fill_overprint() { +fn a_colorized_image_mask_takes_the_fill_overprint_in_force() { let opened = |square_overprints: bool, image_overprints: bool, drop_own: bool| { let mut doc = Document::new(200.0, 100.0); doc.layers.clear(); @@ -1087,9 +1087,9 @@ fn a_colorized_image_mask_takes_only_its_own_fill_overprint() { doc.insert(Some(layer), usize::MAX, bitmap).unwrap(); let mut text = String::from_utf8(write(&doc).bytes).unwrap(); if drop_own { - let own = "0 0.5 1 0 k\n0 O\n"; - assert!(text.contains(own), "{text}"); - text = text.replace(own, "0 0.5 1 0 k\n"); + let own = format!("0 0.5 1 0 k\n{} O\n", u8::from(image_overprints)); + assert!(text.contains(&own), "{text}"); + text = text.replace(&own, "0 0.5 1 0 k\n"); } let read = crate::import(text.as_bytes()).unwrap().document; let mut found = vec![]; @@ -1102,7 +1102,8 @@ fn a_colorized_image_mask_takes_only_its_own_fill_overprint() { }; assert_eq!(opened(false, true, false), [true]); assert_eq!(opened(true, false, false), [false]); - assert_eq!(opened(true, false, true), [false], "the square's overprint is left over"); + assert_eq!(opened(true, false, true), [true], "the square's overprint stays in force"); + assert_eq!(opened(false, true, true), [false], "and so does the square's knockout"); } /// The pieces of a colorized warped image work out the image's coverage once, and an image with diff --git a/crates/eps/src/scene.rs b/crates/eps/src/scene.rs index 474955ada4..6b3add0ef2 100644 --- a/crates/eps/src/scene.rs +++ b/crates/eps/src/scene.rs @@ -577,7 +577,11 @@ impl<'a> Scene<'a> { match n.extras().colorize.as_deref() { // On a plate, an overprinting image whose color puts none of the plate's ink // down is drawn as nothing, as such a solid color is ([`Self::on_plate`]). - Some(p) if self.plate && n.colorize_overprints() && vectorcraft_doc::overprint::is_white(p) => {} + Some(p) + if self.plate + && self.o.overprint == Overprint::Preserve + && n.colorize_overprints() + && vectorcraft_doc::overprint::is_white(p) => {} Some(p @ Paint::Solid { .. }) if blob.is_none_or(|b| b.gray_source().is_some()) => { let on = self.overprint_on(n.colorize_overprints()); self.colorized_image(im, blob, p, on); @@ -1789,7 +1793,7 @@ impl<'a> Scene<'a> { /// Image `im` (its pixels `blob`) as gray coverage in the selected process or Separation ink. /// Binary coverage is a stencil; continuous coverage leaves zero pixels untouched at Level 3 - /// and writes them as paper at Level 2. With `overprint` a CMYK color is written in only the + /// and writes them as paper at Level 2. With `overprint` a CMYK or gray color is written in only the /// process inks it puts down ([`Self::overprint_passes`]), since a zero sample in an image /// replaces the ink below it. fn colorized_image(&mut self, im: &vectorcraft_doc::ImageObject, blob: Option<&ImageBlob>, paint: &Paint, overprint: bool) { @@ -1818,12 +1822,19 @@ impl<'a> Scene<'a> { } /// The color spaces an overprinting colorized image of `paint` is drawn in, each with the - /// amounts of its inks, when `paint` is a CMYK process color: at Level 3 one DeviceN space of - /// the process inks it puts down, at Level 2 a Separation space for each of them. No pass when - /// it puts no ink down. `None` for another paint, which is drawn as it is without overprinting. + /// amounts of its inks, when `paint` is a CMYK or gray process color (gray is black ink): at + /// Level 3 one DeviceN space of the process inks it puts down, at Level 2 a Separation space + /// for each of them. No pass when it puts no ink down. `None` for another paint, which is drawn + /// as it is without overprinting. fn overprint_passes(&mut self, paint: &Paint) -> Option> { let Paint::Solid { color, swatch, tint } = paint else { return None }; - let Ink::Process(Space::Cmyk, c) = self.solid(color, swatch.as_deref(), *tint) else { return None }; + let c = match self.solid(color, swatch.as_deref(), *tint) { + Ink::Process(Space::Cmyk, c) => c, + // PostScript's gray is lightness. + // PostScript's gray is lightness. + Ink::Process(Space::Gray, [lightness, ..]) => [0.0, 0.0, 0.0, unit(1.0 - lightness)], + _ => return None, + }; let process: Vec = (0..4).filter(|&i| c[i] > 0.0).collect(); if process.is_empty() { return Some(vec![]); diff --git a/crates/eps/src/tests.rs b/crates/eps/src/tests.rs index 868a8c01ad..67641be1bd 100644 --- a/crates/eps/src/tests.rs +++ b/crates/eps/src/tests.rs @@ -1209,6 +1209,13 @@ fn an_overprinting_colorized_image_writes_only_its_process_inks() { assert_eq!(pixels, vec![102, 51, 0], "the cyan pass first"); assert_eq!(ps.matches("/ImageType 1").count(), 2, "one image per ink: {ps}"); + // A gray color is black ink alone. + let gray = doc(vec![0, 128, 255], Color::Gray { k: 0.6 }, true); + for level in Level::ALL { + let (ps, ..) = colorized_samples(&gray, level); + assert!(ps.contains("/Black") && !ps.contains("/DeviceGray setcolorspace") && !ps.contains("/Cyan"), "{ps}"); + } + // A stencil sets the pass's inks as its color. let (ps, ..) = colorized_samples(&doc(vec![0, 255, 0], ink, true), Level::Three); assert!(ps.contains("VCdn0 setcolorspace 0.4 1 setcolor") && ps.contains("imagemask"), "{ps}"); @@ -1241,17 +1248,22 @@ fn an_overprinting_colorized_image_writes_only_its_process_inks() { } /// On a separation plate, an overprinting colorized image whose color puts none of the plate's ink -/// down is drawn as nothing, so the ink below stays; one that knocks out is drawn as paper. +/// down is drawn as nothing, so the ink below stays; one that knocks out, or whose overprint is +/// discarded, is drawn as paper. (The plate's colors come from the separator, which has already +/// applied Discard White Overprint.) #[test] fn a_plate_leaves_out_an_overprinting_image_without_its_ink() { - let body = |overprint: bool| { + let body = |overprint: bool, preserve: bool| { let mut d = colorized_doc(vec![0, 128, 255], Some(Paint::solid(Color::WHITE))); + d.setup.discard_white_overprint = false; let id = d.layers[0].children().unwrap()[0].id; d.node_mut(id).unwrap().extras_mut().colorize_overprint = overprint; - crate::scene::Scene::new(&d, &opts(&d)).on_plate(true).run().body + let o = EpsOptions { overprint: if preserve { Overprint::Preserve } else { Overprint::Discard }, ..opts(&d) }; + crate::scene::Scene::new(&d, &o).on_plate(true).run().body }; - assert!(!body(true).contains("image"), "{}", body(true)); - assert!(body(false).contains("image"), "{}", body(false)); + assert!(!body(true, true).contains("image"), "{}", body(true, true)); + assert!(body(false, true).contains("image"), "{}", body(false, true)); + assert!(body(true, false).contains("image"), "{}", body(true, false)); } #[test] diff --git a/docs/mcp.md b/docs/mcp.md index c618bf2b06..2816c79c7a 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -5088,9 +5088,11 @@ PDF export writes them with `advanced.overprint: "preserve"` (the default): each 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. EPS export (`overprints: "preserve"`, the default) turns overprinting on for a colorized image's color as it does for fills and strokes. 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 so for a -CMYK color (one DeviceN image at Level 3, one Separation image per ink at Level 2). The previews and printed -separations show a colorized image with a visible drop shadow, outer glow or Gaussian blur of its own knocking out. +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}}} diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index a3614b96a0..5bc78580c5 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1994,7 +1994,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur - **Colorized images (#1466):** a fill color applied to a selected grayscale or 1-bit image (`paint.setFill`) colorizes it with black, white, a process color or a spot color, and refuses a process color when the image has an alpha channel ([Convert color modes](https://web.archive.org/web/20251220223850/https://helpx.adobe.com/illustrator/desktop/manage-colors/select-and-adjust-colors/convert-color-modes.html), "Colorize Grayscale or 1-bit images"); black and white are accepted there too. The canvas draws each pixel in the color as far as the pixel is dark, with white pixels transparent; PDF export writes the image in the color (a spot color as its ink, Registration in every ink) with the image as its soft mask; Separations Preview and printed separations show it on its color's plates; native files keep the color. SVG writes the fill color through a coverage mask (or a colorized PNG in Tiny 1.2); EPS writes binary coverage as an image mask in the color's ink, and a grayscale image as ink samples scaled by coverage, with white pixels left out at Level 3 and gray midtones written over white. The prompt for deleting several swatches and groups uses the interface language's plural form for the count. Evidence: `deleting_several_swatches_uses_each_count_form` in `crates/ui-egui/src/panels/swatches/tests.rs`. - **Colorized images (#1466):** a fill color applied to a selected grayscale or 1-bit image (`paint.setFill`) colorizes it with black, white, a process color or a spot color, and refuses a process color when the image has an alpha channel ([Convert color modes](https://web.archive.org/web/20251220223850/https://helpx.adobe.com/illustrator/desktop/manage-colors/select-and-adjust-colors/convert-color-modes.html), "Colorize Grayscale or 1-bit images"); black and white are accepted there too. The canvas draws each pixel in the color as far as the pixel is dark, with white pixels transparent; PDF export writes the image in the color (a spot color as its ink, Registration in every ink) with the image as its soft mask; Separations Preview and printed separations show it on its color's plates; native files keep the color. EPS and SVG write the image's own pixels. - - **Colorized images overprint:** Overprint Fill (`object.setOverprint {fill: true}`) on a colorized grayscale or 1-bit image makes its color print over the inks below instead of knocking them out. Raster art has an overprint setting in the [scripting reference](https://ai-scripting.docsforadobe.dev/jsobjref/RasterItem/). `attributes.info` reports it, native files keep it, and Overprint Preview, Separations Preview and printed separations show it; they show an image knocking out when it has a visible drop shadow, outer glow or Gaussian blur of its own, or a fill or stroke that draws a shape with Convert to Shape or Outline Object and does not overprint. PDF export draws the image with an overprinting graphics state and writes a gray or process color as an image of only the process inks it puts down (ISO 32000-1 §8.6.7). EPS export turns overprinting on for it and writes a process color in only the process inks it puts down (one DeviceN image at Level 3, one Separation image per ink at Level 2). A legacy `.ai` file writes it with the image mask's fill overprint and reads it back. White follows the rule for white fills: with Discard White Overprint on, PDF export and the previews show a white color knocking out. Taking the color off with a fill of None also turns its overprint off. Edit › Edit Colors › Overprint Black and Print Ink Fixes' Remove White Overprint reach a colorized image's color as its fill. Evidence: engine `tests::colorize::overprint_fill_makes_a_colorized_images_color_overprint`, `tests::colorize::overprint_black_and_print_fixes_reach_a_colorized_images_color`, `tests::colorize::flattening_without_preserve_overprints_drops_a_colorized_images_overprint`, `tests::colorize::flattening_without_preserve_overprints_clears_an_uncolored_images_overprint`, doc `overprint::tests::a_white_colorized_image_knocks_out_under_discard_white`, `overprint::tests::a_colorized_image_darkens_unless_its_rows_draw_an_effect`, `overprint::tests::a_colorized_image_with_a_node_effect_keeps_knocking_out`, `overprint::tests::overprint_black_takes_a_black_colorized_image`, `overprint::tests::clearing_overprints_clears_the_flag_of_an_image_without_a_color`, render `tests::colorize::an_overprinting_colorized_image_keeps_the_ink_below_in_the_previews`, pdf `tests::colorize::an_overprinting_colorized_image_sets_overprint`, `tests::colorize::separations_hide_an_overprinting_image_on_plates_without_its_ink`, eps `tests::an_overprinting_colorized_image_writes_only_its_process_inks`, `legacy_ai::tests::a_colorized_image_mask_takes_only_its_own_fill_overprint`, doc `live::tests::mesh_warp_image_pieces_keep_an_overprinting_color`, effects `tests::an_image_under_a_geometry_effect_keeps_its_color_and_smoothing`. + - **Colorized images overprint:** Overprint Fill (`object.setOverprint {fill: true}`) on a colorized grayscale or 1-bit image makes its color print over the inks below instead of knocking them out. Raster art has an overprint setting in the [scripting reference](https://ai-scripting.docsforadobe.dev/jsobjref/RasterItem/). `attributes.info` reports it, native files keep it, and Overprint Preview, Separations Preview and printed separations show it; they show an 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), or a fill or stroke that draws a shape with Convert to Shape or Outline Object and does not overprint. PDF and EPS export leave raster effects out and still overprint such an image. PDF export draws the image with an overprinting graphics state and writes a gray or process color as an image of only the process inks it puts down (ISO 32000-1 §8.6.7). EPS export turns overprinting on for it and writes a gray or process color in only the process inks it puts down (one DeviceN image at Level 3, one Separation image per ink at Level 2). A legacy `.ai` file writes it with the image mask's fill overprint, and reading one takes the fill overprint in force at the image mask. White follows the rule for white fills: with Discard White Overprint on, PDF export, the previews and printed separations show a white color knocking out, and EPS export overprints it as it does a white fill. Taking the color off with a fill of None also turns its overprint off. Edit › Edit Colors › Overprint Black and Print Ink Fixes' Remove White Overprint reach a colorized image's color as its fill. Evidence: engine `tests::colorize::overprint_fill_makes_a_colorized_images_color_overprint`, `tests::colorize::overprint_black_and_print_fixes_reach_a_colorized_images_color`, `tests::colorize::flattening_without_preserve_overprints_drops_a_colorized_images_overprint`, `tests::colorize::flattening_without_preserve_overprints_clears_an_uncolored_images_overprint`, doc `overprint::tests::a_white_colorized_image_knocks_out_under_discard_white`, `overprint::tests::a_colorized_image_darkens_unless_its_rows_draw_an_effect`, `overprint::tests::a_colorized_image_with_a_node_effect_keeps_knocking_out`, `overprint::tests::overprint_black_takes_a_black_colorized_image`, `overprint::tests::clearing_overprints_clears_the_flag_of_an_image_without_a_color`, render `tests::colorize::an_overprinting_colorized_image_keeps_the_ink_below_in_the_previews`, pdf `tests::colorize::an_overprinting_colorized_image_sets_overprint`, `tests::colorize::separations_hide_an_overprinting_image_on_plates_without_its_ink`, eps `tests::an_overprinting_colorized_image_writes_only_its_process_inks`, `tests::a_plate_leaves_out_an_overprinting_image_without_its_ink`, `tests::an_overprinting_colorized_image_at_the_page_limit_keeps_all_its_inks_or_none`, `legacy_ai::tests::a_colorized_image_mask_takes_the_fill_overprint_in_force`, doc `live::tests::mesh_warp_image_pieces_keep_an_overprinting_color`, effects `tests::an_image_under_a_geometry_effect_keeps_its_color_and_smoothing`. - **Missing library files:** a persistent swatch or graphic style library panel whose file is gone at startup reopens and stays in the preferences, showing the file's path with Locate Library… (`ui.libraryPanel.locate`), which reads the file from where it is now into the same panel. - **Swatch library and Recolor Artwork parameters:** the `swatch.library.*` commands, `swatch.resetDefaults`, the graphic style library save, load and add, the `recolor.*` commands and `color.harmony`'s `limitTo` refuse parameters of the wrong form, such as `names: "Grays"`, `limitTo: 5` or `includeImages: "false"`. Errors name the parameter, except that a `limitTo` that is not a string, such as `5`, gets an unknown-library error. A `null` counts as left out except for `recolor.apply`'s `model`, which must be a string when given. - **OKLCH Sliders (Color Wheel panel):** as VectorCraft's own addition, the Color Wheel panel's menu item OKLCH Sliders (`ui.colorWheel {sliders: "oklch"}`, kept with the preferences) shows L, C and H rows under the wheel or the box that edit the color by the OKLCH lightness (0 to 100 %), chroma (0 to 100 % of 0.4) and hue (0 to 360°) of its display sRGB, as CSS Color 4 defines them (https://www.w3.org/TR/css-color-4/#specifying-oklab-oklch). Each track dims the colors outside sRGB, and a tick on the C track marks the largest chroma sRGB holds at the row's L and H; a color outside sRGB keeps L and H and takes the largest chroma that fits, and the C row keeps the chroma asked for. The rows take the arrow keys after a click and report their names, values, ranges and adjust actions to screen readers. While the active document's RGB space (its assigned profile, else the working RGB space of Edit › Color Settings) is not sRGB, the unchecked item is gray and `ui.colorWheel {sliders: "oklch"}` answers an error; rows shown before the space changed are gray, and the checked item still hides them. `color.convert {color, to: "oklch"}` answers the same L, C and H for a color inside sRGB. For a color outside sRGB, it clips the display RGB to 0 to 1 first, so its L, C and H can differ from the rows' values. Evidence: `crates/color/src/oklab.rs` tests; `convert_to_oklch_answers_lightness_chroma_and_hue` in `crates/engine/src/tests/colormgmt.rs`; the OKLCH tests in `crates/ui-egui/src/panels/tests_color_wheel.rs`, `the_oklch_tracks_dim_the_colors_outside_srgb_and_the_tick_marks_the_largest_chroma` and `oklch_sliders_are_gray_after_the_working_space_changes` among them. Scores and estimates are unchanged.