Image conversion guides

Check partial alpha in a still WebP saved as SVG

·

When you move a small graphic to a new background, compare the edges as well as the solid artwork. This 14 × 10 lantern has soft blue sides, an opaque amber center and clear corners, so you can inspect three levels of alpha.

WebP to SVG

Compare the lantern against two backgrounds

Select Load example or open transparent-webp-lantern.webp, then Convert to SVG. The source and output measure 14 × 10 pixels. On the checkerboard, the blue blocks let the background show through much more than the amber center.

Download transparent-webp-lantern.svg and place it over a solid color. The corners show the full background, and the blue sides blend with it at about 50% opacity.

Download the original translucent lantern WebPGoogle — WebP RIFF container and alpha

Verify one image at the same size

Open the downloaded SVG as text. Check the viewBox 0 0 14 10 and the PNG data URL in its only image element. The PNG contains the displayed alpha values.

If you have several files, add them together and download the ZIP. Each successful still becomes a separate SVG with its own height, width and alpha.

W3C SVG 2 — Embedded image

Choose a frame before converting an animation

When a WebP contains animation, choose the moment you need in an editor that can export a still WebP. Then open that single file here and check which artwork appears in the preview.

The downloaded SVG contains one embedded image. Keep the animated source for timing and other frames.

Google — WebP RIFF container and alpha

Common questions

Will the checkerboard be part of my SVG?

The preview checkerboard shows clear and partially transparent areas. The SVG stores the image and its alpha only.

Why do I see individual pixels when I enlarge the lantern?

The original is a 14 × 10 raster image. Its SVG maps that same grid onto a larger area when you scale it.

Sources

Put it into practice.

Related guides