From 83b51ab9c7d3bd0c1453e725913b825d723fc245 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Fri, 9 Oct 2026 13:43:49 +0700 Subject: [PATCH] SVG export: name the unsupported pixel effects without a product name The brands check keeps other products' names out of user-facing text; #694's SVG warnings called Radial Blur, Smart Blur and Unsharp Mask "Photoshop-style raster effects". They are "pixel effects" now. Co-Authored-By: Claude Opus 5.5 --- crates/svg/src/css.rs | 2 +- crates/svg/src/export.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/svg/src/css.rs b/crates/svg/src/css.rs index 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.rs index 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");