Image conversion guides

Check transparency in a PNG-backed AVIF SVG

·

Use the transparent card to check whether the SVG can be placed over a colored layout with the same visible cutout. The exported SVG carries the decoded pixels inside the file.

AVIF to SVG

Check the 12 × 8 transparent card

Select Load example to open transparent-avif-card.avif, then Convert to SVG. The preview shows a green block and a partially transparent blue block on a transparent background. The viewport is 12 × 8 pixels.

Download the SVG and place it over a colored background. The blue block lets the background show through, and the empty space outside the blocks shows the full background color.

Alliance for Open Media — AVIF 1.2

Find the image and its embedded PNG

Open the SVG as text. The image element contains a data:image/png URL with the decoded pixels. This keeps the file portable even if you move it away from the AVIF source.

The 12 × 8 viewBox maps the original pixel grid. Enlarging the SVG makes the PNG larger on screen.

W3C SVG 2 — The image element

Choose the source photo or the first frame

A still AVIF supplies its primary image. For a supported AVIF sequence the result shows First frame. Save the original sequence when you need the remaining frames or timing.

The PNG uses 8-bit sRGB display pixels. Keep the AVIF file when you need the source profile or higher bit depth.

Alliance for Open Media — AVIF 1.2

Common questions

Will the checkerboard appear in the SVG file?

The checkerboard marks transparent areas in the workspace preview. The SVG shows through to the background of the application that opens it.

Why is there a PNG in the SVG?

An SVG image element can carry PNG data inside the file. The reader can display the source pixel grid directly.

Sources

Put it into practice.

Related guides