Image conversion guides

Check a turned HEIC photo in its SVG viewport

·

When the stored dimensions of a photo differ from the displayed dimensions, use a visible landmark to verify the turn. The worked example stores a horizontal 96 × 64 pixel grid and declares a clockwise display rotation.

HEIC to SVG

Check why 96 × 64 becomes 64 × 96

Select Load example or open turned-primary-photo.heic. The source row reports 96 × 64 stored pixels. Convert to SVG and check the portrait output at 64 × 96 pixels.

The red marker from the stored top-left appears near the top-right of the preview. The green marker appears near the top-left. Those positions distinguish a clockwise turn from a simple change to the dimensions.

Download the original turned HEIC sampleNokia HEIF reference implementation — Image items and transformations

Check the saved SVG dimensions

Download turned-primary-photo.svg and open it in a viewer. Opening the SVG again should show the same portrait arrangement without a separate orientation setting.

As text, the SVG has viewBox 0 0 64 96 and one PNG image of the same size. The decoder stores the already oriented pixels in that image.

W3C SVG 2 — Embedded image

Choose a supported still photo

A HEIC can hold several stills. The converter selects the item declared primary by its container. To export another still, save that still as a separate HEIC first.

For a PQ or HLG photo rejected by the converter, export an SDR copy. Keep the source when you need camera metadata, a depth map or higher-bit-depth samples.

Nokia HEIF reference implementation — Image items and transformations

Common questions

What does the source’s stored size describe?

It comes from the primary image’s metadata before applying its display orientation. Use the dimensions on the SVG result card for layout.

Will moving the SVG break its image?

The PNG pixels are embedded inside the SVG file. The viewer can open it independently of the HEIC source.

Sources

Put it into practice.

Related guides