Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

Save for Web: the undecoded-image warning comes from the shared helper

bflatastice01fe134e998
diff --git a/crates/engine/src/cmd/webexport.rs b/crates/engine/src/cmd/webexport.rs
index 30b4fd998..a2e854ac9 100644
--- a/crates/engine/src/cmd/webexport.rs
+++ b/crates/engine/src/cmd/webexport.rs
@@ -1000,7 +1000,7 @@ fn export(s: &mut Session, p: &Value) -> Result<Value> {
/// the note the raster exports add (`fileio::encode::encode_all_of`) when an image has failed to
/// decode since then and so is missing from the image.
fn undecoded(failed: u64) -> Vec<&'static str> {
- if vectorcraft_render::decode_failures() > failed { vec!["an image couldn't be decoded and is missing from the picture"] } else { vec![] }
+ super::rasterfx::undecoded_warning(failed).into_iter().collect()
}
fn preview(s: &mut Session, p: &Value) -> Result<Value> {