Source: https://restorebunny.com/guides/fix-photo-rotation-before-upload/

# Fix Photo Rotation Before Upload: Pixels and EXIF Orientation

Diagnose a photo that turns sideways after export or metadata removal. Check orientation, avoid mirrored text and verify the final delivery file.

Photo preparation3 min readUpdated 03 October 2026

Quick answer

## The short version

A picture can appear upright because a viewer reads its orientation metadata while another viewer shows the stored pixels differently. Export an upright delivery copy, reopen it in more than one viewer and test the upload. Do not delete orientation information without checking the resulting image.

## Find the stage where orientation changes

Compare the source in your photo library, the exported file in a separate viewer and the uploaded preview. If the library is upright but the export is sideways, investigate that export. If the export is upright but only the website is wrong, inspect the site's handling and test a fresh delivery copy. Do not repeatedly rotate the master to compensate for an unknown preview behaviour.

ExifTool's official EXIF reference lists an Orientation field with rotation and mirror values. The field describes how stored image data should be displayed. Software can differ in its handling, so an upright thumbnail is insufficient evidence that a copy will be upright after conversion, stripping metadata or upload.

## Create and test an upright copy

1. Preserve the source file unchanged. Choose one affected picture and record how it appears in the library, file viewer and destination.
2. Open a working copy in an image editor that respects the source orientation. If it is already upright, avoid adding another rotation blindly.
3. Use the editor's rotate control only as needed and export a new ordinary delivery file. Keep format and quality appropriate to the destination.
4. Reopen the saved file in two available viewers. Check faces and readable text, not just width and height.
5. Upload that exact file, inspect the preview and download a test copy if the destination permits. Recheck after metadata cleanup or another conversion.

## Worked example: a portrait after metadata cleanup

Imagine a source whose stored pixel grid is 4032×3024, but its orientation field tells viewers to display it as a portrait. A naive metadata deletion can leave a viewer displaying the landscape grid. An export that correctly applies the orientation may instead write an upright 3024×4032 delivery image. Those swapped dimensions can be normal for a 90-degree rotation; they do not automatically mean resizing occurred.

Check a sign or printed word in the scene. If it reads backwards, the problem is a mirror operation rather than a simple quarter turn. Fix the working copy from the source and verify again. A photo with no obvious text may need comparison with a known physical print or source capture so you do not turn a plausible face into the wrong orientation.

## Avoid these misleading fixes

- Renaming .jpg to .png: changing a filename extension does not re-encode pixels or normalise orientation.
- Changing a DPI number: print-density metadata is separate from whether a picture is sideways.
- Rotating only a gallery thumbnail: a library display change may not alter the file delivered by another export path.
- Deleting all metadata first: orientation and colour information can affect display. Prepare and inspect a delivery copy instead of experimenting on the only source.

## Recheck orientation at the end of the workflow

Make rotation one of your final checks after crop, conversion, compression and public-sharing preparation. If a workflow performs several exports, identify which saved file you actually submitted. A filename such as chair-upload-v2.jpg and a small log make it easier to avoid accidentally uploading an earlier sideways version.

For archive scans, retain the original capture and note any viewing rotation. For a seller image, keep maker's marks and text readable without mirroring them. This guide is about reliable delivery orientation, not perspective correction or AI reconstruction. A correctly upright file can still need separate checks for focus, colour and privacy.

## FAQs

Why is a photo upright on my phone but sideways on a website?

Different software may interpret orientation metadata differently. Compare the exported file and uploaded preview, then test an upright export.

Does stripping EXIF always fix rotation?

No. If display depends on its orientation field, deleting that field without normalising pixels can make the image sideways. Inspect the final file.

## Sources

Preservation and technical guidance reviewed for this article.

- ExifTool: [EXIF tags: Orientation](<https://exiftool.org/TagNames/EXIF.html>)

## Related

- [Export a compatible delivery copy](<https://restorebunny.com/guides/convert-heic-to-jpg-without-losing-quality/>)
- [Prepare a metadata-stripped sharing copy and recheck orientation](<https://restorebunny.com/tools/photo-metadata-remover/>)
- [Review public-sharing metadata](<https://restorebunny.com/guides/remove-location-data-from-photos/>)
- [Check a delivery file's pixel dimensions](<https://restorebunny.com/tools/photo-resolution-checker/>)

## Ready to restore your photos?

Upload an image, choose your settings, and preview results with a before/after slider.

[Get Started](<https://restorebunny.com/signup/>)[View Pricing](<https://restorebunny.com/pricing/>)

RestoreBunny Team

Photo workflow editors

Guides follow our [editorial policy](<https://restorebunny.com/editorial-policy/>) for sourcing, product claims, AI limitations, updates, and corrections.
