mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 12:17:14 -06:00
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5acc269a41
commit
83b51ab9c7
@@ -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() {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user