VectorCraft: An open-source, vector art tool written by scratch in pure Rust
SVG export: name the unsupported pixel effects without a product name
bflatastic83b51ab9c7d3
diff --git a/crates/svg/src/css.rs b/crates/svg/src/css.rsindex 00003642d..f98092b65 100644--- a/crates/svg/src/css.rs+++ b/crates/svg/src/css.rs@@ -584,7 +584,7 @@ impl Rules<'_> {}RasterFx::GaussianBlur { radius } => filter = Some(format!("blur({})", self.len(radius / 2.0))),RasterFx::InnerGlow { .. } | RasterFx::Feather { .. } => art.unsupported("inner glows or feathering"),- RasterFx::Pixel(_) => art.unsupported("Photoshop-style raster effects"),+ RasterFx::Pixel(_) => art.unsupported("pixel effects"),}}if !shadows.is_empty() {diff --git a/crates/svg/src/export.rs b/crates/svg/src/export.rsindex 6e7bfff69..a67d91c49 100644--- a/crates/svg/src/export.rs+++ b/crates/svg/src/export.rs@@ -1514,7 +1514,7 @@ impl Writer<'_> {let mut opened = 0;for f in fx.iter().rev() {if matches!(f, RasterFx::Pixel(_)) {- self.warn("SVG has no Photoshop-style raster effects (Radial Blur, Smart Blur, Unsharp Mask…): they are left out");+ self.warn("SVG has no pixel effects such as Radial Blur, Smart Blur or Unsharp Mask: they are left out");continue;}let fid = self.fresh_id("filter");