Fix artboards not exporting with transparency using Vello (#3921)

* Fix hide artboard for raster render mode

* Desktop: Fix transparent viewport blending

* Fix vello render using wrong color space conversion for background

* Review
This commit is contained in:
Timon
2026-03-23 02:20:54 +01:00
committed by GitHub
parent bf486b4cb5
commit 5b1e1cb2fb
5 changed files with 26 additions and 38 deletions

View File

@@ -440,8 +440,6 @@ impl NodeGraphExecutor {
file_type,
name,
size,
#[cfg(feature = "gpu")]
transparent_background,
artboard_name,
artboard_count,
..
@@ -491,12 +489,7 @@ impl NodeGraphExecutor {
match file_type {
FileType::Png => {
let result = if transparent_background {
image.write_to(&mut cursor, ImageFormat::Png)
} else {
let image: RgbImage = image.convert();
image.write_to(&mut cursor, ImageFormat::Png)
};
let result = image.write_to(&mut cursor, ImageFormat::Png);
if let Err(err) = result {
return Err(format!("Failed to encode PNG: {err}"));
}