Image conversion guides

Verify a JPG’s display orientation after SVG export

·

When a JPG stores an orientation tag, its pixels can appear in a different order from the encoded grid. The worked marker makes that turn visible even if your viewer already corrects the JPG automatically.

JPG to SVG

Check why a 40 × 24 JPG becomes 24 × 40

Select Load example or open field-marker-turn.jpg. The source row shows a 40 × 24 stored grid and Orientation 6. Select Convert to SVG.

The result measures 24 × 40. The red marker moves from the stored upper-left to the displayed upper-right, and the green marker moves from the stored lower-left to the displayed upper-left. Those positions distinguish a clockwise quarter turn from simple resizing.

Download the original turned marker JPGCamera & Imaging Products Association — Exif standards

Confirm the pixel grid in the SVG

Save field-marker-turn.svg. Its viewBox is 0 0 24 40, and the image element carries a PNG data URL. The PNG already contains the turned pixels, so the SVG viewer can use the pixel grid directly.

Place the export over a contrasting color. The slate background remains opaque because it is part of the JPG image.

W3C SVG 2 — Embedded image

Use a single image if the file is rejected

If the converter reports trailing data or a damaged JPEG stream, open the source in an image editor and export the intended still as a fresh JPG. Check its orientation again before comparing outputs.

Keep the original if you need the camera information or an editing source. The PNG-backed SVG retains the displayed pixels and keeps their fixed-resolution detail when scaled.

Common questions

How can I tell which way a square image was turned?

The width and height stay equal after a quarter turn. Compare recognizable landmarks near opposite corners, such as two different color blocks.

Do I need to keep the JPG beside the SVG?

The new SVG includes the embedded PNG data and can be opened without the source JPG.

Sources

Put it into practice.

Related guides