SVG guides

Export one SVG mark for a website, icon or image editor

·

A wayfinding mark combines a solid blue panel, a white arrow, a half-opaque green window and clear corners. That makes it easy to distinguish a sizing error from a transparency change. Use the sample linked below to decide which version to hand off.

SVG Image Converter

Read the viewport before choosing a pixel width

The sample viewBox is 10 20 80 40. The first two values locate the drawing origin; the last two set its width and height in user units. At an export width of 160 the preview reports 160 × 80. In the downloaded PNG the blue panel starts near pixel (8, 16). If the mark looks off-center, check the viewBox origin and the space inside the artboard.

For a website slot 80 pixels wide, use the 160-pixel copy for a 2× resource. The extra pixels help only if the page still displays it at 80 CSS pixels. Enlarging a low-resolution photograph embedded inside the SVG cannot restore missing detail.

Download the wayfinding mark (SVG)W3C SVG 2: viewport and viewBox

Compare the green window over two backgrounds

Export PNG and place it over black, then white. The clear corner should show the surface beneath it. The green window blends on each surface, while the blue panel stays solid. Switch to JPG and select the intended page color before conversion. The downloaded corner now has that color even when viewed over a different background.

For an ICO, inspect the 16-pixel entry as well as the 256-pixel one. An 80:40 drawing occupies only half the square height at each size. If the arrow is difficult to recognize in the small entry, reduce detail or create a square source specifically for that use.

Download the wayfinding mark (SVG)MDN: image formats and transparency

Choose an output that survives the next editing step

The format presets below all begin with the same local rendering. Use the table to decide how to inspect the actual file. Keep the SVG as the editable source when you need its paths, groups or text later.

Choose an output that survives the next editing step
OutputWhat to check after download
PNGPlace the green window over two backgrounds to verify partial alpha.
JPGInspect the chosen solid background and the white arrow edge at 100%.
WebPCompare the softened or sharp boundary at two quality settings in the receiving browser.
AVIFOpen the still in a viewer that supports AVIF alpha, then compare the clear corner.
GIFInspect the one-frame palette. Pixel alpha below 128 becomes transparent and alpha at or above 128 becomes opaque.
BMPVerify a 24-bit opaque image and confirm the matte at a clear corner.
TIFFReopen the single RGB/alpha page and check its sRGB profile and dimensions.
ICOInspect all six square entries at 16, 32, 48, 64, 128 and 256 pixels.
JP2Check that the destination accepts JPEG 2000 and reproduces the alpha channel.
PCXCheck the 24-bit RGB result and its solid background in the older application that requested it.
DDSInspect the uncompressed texture at its base resolution. This export has no mipmap chain.
PSDOpen the raster artwork in a layer-aware editor. SVG groups are not transferred as separate layers.
TGAReopen the file and check origin, dimensions and the transparent corner in the receiving tool.

MDN: image formats and transparency

Repair a drawing that depends on another file

An image reference such as assets/logo.png has no portable meaning when you hand over a single SVG. Embed that PNG or JPEG, or replace it with vector paths. A local fragment such as #panel refers to a definition in the same file and works in the supplied sample.

If text changes width between devices, the named font may be absent. Compare a word near an edge before export. For a fixed logo, keep an editable master and convert its final lettering to paths in the authoring application.

Download the wayfinding mark (SVG)

Common questions

Can an animated SVG become an animated GIF here?

This workspace reads still artwork and exports one GIF frame. Export the desired pose as a static SVG before converting.

Why do JPG corners have a color?

JPEG cannot store alpha. The chosen background supplies a color for clear and partly transparent pixels. Check edges as well as the corners.

Sources

Put it into practice.

Related guides