A photo can turn sideways after upload when its stored pixel arrangement and orientation metadata are handled differently by the source app and destination. Compare the actual exported file in more than one appropriate viewer, then correct orientation once in a copy and check the destination again.
- Identify the intended top edge and any mirroring.
- Correct a copy from a known source once.
- Reopen the export and verify the actual destination.
Why can the same photo appear upright and sideways?
An image’s stored rows and columns are not always the whole display instruction. Orientation metadata can tell a compatible viewer how to rotate or mirror that arrangement for presentation.
Separate stored pixels from orientation instructions
A camera can store a rectangular pixel array together with an orientation value. A viewer that applies that value may display the photo upright, while a processing route that ignores or mishandles it may produce another orientation. This is a possible mechanism, not a diagnosis for every sideways image.
The CSS image-orientation documentation explains use of EXIF orientation for display. Other processing stages may decode and export pixels themselves, so an upright browser preview does not establish what a later service will save.
Think of an illustrative arrow image with the word TOP. The visible word gives a clear orientation checkpoint without relying on a face or an ambiguous landscape. Use an equally clear landmark in your real photo: text, a doorway or the subject’s intended upright position.

Distinguish rotation from a mirrored image
A quarter-turn changes which edge is at the top; mirroring reverses handedness. A mirrored sign can remain upright while its letters run backward. Treat these as separate operations when choosing a correction.
Use visible text or a known asymmetric detail to identify the difference. Do not infer mirroring from a subject’s hairstyle alone, and do not flip a photo just because a front-camera preview felt familiar. The saved image and the preview can be different presentations.
For an image that must document an object accurately, preserve the real arrangement. A deliberate creative mirror may be acceptable in design work, but it is a different task from correcting an accidental display problem. The useful outcome is knowing whether the file needs rotation, reflection or no pixel change at all.

Where did the orientation change enter the workflow?
Compare the source, the exported copy and the destination’s served version. The first point where orientation changes tells you which route to investigate; it does not automatically establish that the camera original is defective.
| Comparison | What it can indicate | Next useful check |
|---|---|---|
| Source upright, local export sideways | Export or decoding difference | Export settings and orientation handling |
| Local export upright, uploaded result sideways | Destination processing difference | Served file and support requirements |
| Only one preview is wrong | Viewer presentation difference | Another compatible viewer |
| Text is backward in every version | Mirroring or an earlier edit | Source and intended real arrangement |
Compare actual files rather than cached thumbnails
Open the downloaded export independently. A library thumbnail may lag behind an edit or show a presentation generated earlier. If possible, inspect the full file through the application’s normal open control before drawing a conclusion from a small preview.
Then compare the actual destination result. On a site you manage, the image visible in a card may be a derivative rather than the original upload. A corrected original and a stale sideways thumbnail can coexist until the site’s supported regeneration or cache process resolves the derivative.
Do not clear unrelated site settings as an initial response. First establish which resource is wrong. The correction belongs to the smallest identified stage: source export, destination processing, derivative selection or cached presentation.

Preserve an untouched original before correcting
Make a working copy in a suitable editor. Confirm the intended top edge and whether the image is mirrored. Use the editor’s supported rotate or flip operation once, export a clearly named copy and reopen that file.
The common mistake is rotating an already corrected preview again because another viewer ignores its metadata. That can create a double correction. Work from a known source and judge the actual output, rather than accumulating turns across successive copies.
If the editor provides a documented option to apply orientation to pixels or normalize orientation, use it according to that application’s guidance. Do not assume every Save button performs the same transformation. A clear test image can help identify the route before you process an important batch.

How do you export a copy that stays upright?
The goal is a correctly oriented delivery file through the required route, not merely an upright editor canvas. Confirm the final copy’s appearance and dimensions before uploading it again.
Check dimensions after a quarter-turn
A physical 90-degree rotation of a 1600 × 1200 grid gives a 1200 × 1600 grid. A viewer applying an orientation instruction can complicate which dimensions an interface reports, so check the actual final export in an appropriate information view.
If a destination requires a fixed landscape shape, rotating a portrait photo does not make its subject suitable for that shape. You may need a different composition, permitted padding or a different source. Do not squeeze an upright portrait into a landscape rectangle to satisfy a numerical rule.
Use the pixel resizer only after the intended orientation and composition are settled. If framing needs adjustment, the image cropper handles that separate job. Check that the crop still leaves the important subject visible.

Reopen and test the real delivery path
Export to a format accepted by the destination, reopen the downloaded copy, and inspect the top edge and any readable text. For a batch, test one representative file through the actual route before applying the process to everything.
A successful single test establishes that case, not every possible orientation value or format variant. Include mirrored and portrait examples in a larger workflow test when those occur in your real source collection. Keep the source files until the results are acceptable.
The HEIC-to-JPG converter is a relevant route when a compatible iPhone photo needs a JPEG delivery copy. Conversion is not a universal orientation repair guarantee; inspect the output rather than assuming a format change has resolved the problem.

When does the correction belong to the website?
If the local delivery copy is consistently upright but the site’s result changes it, investigate that site’s image handling. Repeatedly rotating source copies can conceal a reproducible processing defect.
Keep display correction separate from file correction
CSS rotation can make one page placement look upright without changing the underlying downloadable image. That may be a deliberate design choice, but it is not a general fix for a file that will be reused in cards, feeds, downloads or another application.
For a site you manage, inspect the delivered resource, its derivatives and any transforms applied by the theme. Check the original and thumbnail placements after a supported correction. Keep orientation metadata handling and cache invalidation within the actual image-processing workflow.
If you do not control the destination, use its support route with a harmless reproducible example where possible. Describe which copy is upright and where it changes. Do not include account credentials or private photos merely to demonstrate a technical orientation issue.

Questions about sideways uploads
Will stripping all metadata always fix orientation?
No. Removing an orientation instruction before applying it to the pixels can leave a file sideways. Use an export route that handles orientation correctly, then inspect the resulting copy. Metadata removal and orientation correction are related but separate operations.
Should I rotate the original until the website looks right?
Keep the original unchanged and work on a copy. If an upright delivery file becomes wrong only after upload, investigate or report the destination’s processing. Repeated source rotations make it harder to identify which stage actually needs correction.
Establish the intended top edge, correct one known copy and verify its destination. If the destination changes a good file, fix or report that route rather than compensating blindly.


