Cluster C: Image Optimization
SVG and WebP Transparency Guide: Alpha Channels & Backgrounds
Both SVG and WebP support full alpha transparency, meaning cut-out logos, drop shadows, and semi-transparent fills (fill-opacity, rgba()) can transfer cleanly from vector to raster.
Why Transparency Sometimes Disappears
- Opaque Backdrop Rectangles: Many design tools export an explicit full-canvas
<rect width="100%" height="100%" fill="#FFFFFF"/>behind artwork. Our inspector flags when a full-bleed opaque rect is detected. - Non-Transparent Export Settings: Selecting White, Black, or Custom Background fills the canvas before drawing the SVG, intentionally flattening alpha pixels.
Using the Checkerboard & Dark/Light Preview Toggle
When exporting transparent assets for dark or light headers, anti-aliased edges can look clean on white yet show fringes on dark backgrounds. Use the Checker / Light / Dark backdrop toggle in our live split preview to inspect edge anti-aliasing before downloading.
Lossy vs Lossless Alpha
WebP supports alpha channels in both lossy and lossless modes. In lossy mode, the RGB channels use lossy compression while the alpha plane is compressed separately; in Lossless VP8L mode, both RGB and alpha are preserved pixel-for-pixel.