Part of #394: Appearance of Black › Printing / Exporting draws pure CMYK black as RGB black

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Fabio William Conceição
2026-10-14 05:11:55 +07:00
committed by bflatastic
co-authored by Cursor
parent b5bc8f0d19
commit b6d14b1fd0
12 changed files with 116 additions and 31 deletions
+5
View File
@@ -60,6 +60,9 @@ pub struct RasterExportOptions {
pub tga: tga::TgaOptions,
/// PSD colour model, layers and profile.
pub psd: psd::PsdOptions,
/// Appearance of Black › Printing / Exporting › Output All Blacks as Rich Black: pure CMYK
/// black (K alone at 100%) becomes RGB black in RGB raster exports (document values unchanged).
pub rich_black: bool,
}
impl Default for RasterExportOptions {
@@ -76,6 +79,7 @@ impl Default for RasterExportOptions {
bmp: bmp::BmpOptions::default(),
tga: tga::TgaOptions::default(),
psd: psd::PsdOptions::default(),
rich_black: false,
}
}
}
@@ -99,6 +103,7 @@ impl RasterExportOptions {
precise: true,
// Shapes meeting edge to edge leave no seam (#983).
supersample: true,
rich_black: self.rich_black,
..Default::default()
}
}