Game asset processing3 min read

Why a Round Game Icon Exports as an Oval: Check the SVG Viewport

Render a square viewBox into a wide viewport to distinguish letterboxing, stretching and cropping.

Why a Round Game Icon Exports as an Oval: Check the SVG Viewport
A round token and a horizontally stretched token illustrate different viewport fits
Concept illustration

A badge is round in the SVG master and oval in an exported PNG. Check whether the SVG-to-viewport mapping caused the stretch before editing the artwork.

Keep the art fixed and change the fit

Use a viewBox of 0 0 100 100, with a solid circle of radius 40 centered at (50, 50). Render into a 200 by 100 viewport. With xMidYMid meet, the circle should remain about 80 by 80 and sit centered. With none, horizontal scaling doubles its width to about 160 while its height stays about 80. Compare the opaque bounds in the raster output, allowing for antialiasing at the edge.

Separate padding from clipping

Try xMidYMid slice if you need to cover the viewport. It preserves proportions, but the circle becomes 160 pixels tall before viewport clipping, so this test can lose the top and bottom. A fitting margin, a wider oval and clipped artwork diagnose different choices.

Check the deliverable at its target size

Use the app icon generator for the final size pass, checking which input formats it currently accepts. If it needs a PNG, rasterize the master with the intended uniform fit first. If the intermediate PNG is round but the final preview is oval, inspect the later resizing or layout. Avoid distorting the master to compensate for a later step.

Recommended tools

Ready to try "Why a Round Game Icon Exports as an Oval: Check the SVG Viewport"?

Use our online tools to apply this tutorial to your indie game project right away.