Sideways Photos, Mirrored Selfies, and EXIF Orientation
A photo that looked fine on your phone turns up sideways in an email, or rotated in a web form, or upside down in a print shop's preview. Nothing is corrupt. You have run into EXIF orientation, a thirty-year-old shortcut that most apps honour and a stubborn minority ignore. Here is what is happening and how to make the fix stick.
What EXIF orientation actually is
Phone and camera sensors are fixed in the body. When you turn the device, the sensor does not turn with the scene, so the pixels are always written out in the sensor's own orientation. Rather than rotating several megapixels at capture time, the camera writes a small EXIF tag saying "display this rotated 90 degrees clockwise" or "mirror this horizontally".
Your phone's gallery reads that tag and shows the photo the right way up. So do modern browsers and most desktop viewers. Older software, some upload forms, some CMS thumbnail generators, and plenty of homegrown scripts do not. They read the raw pixel grid, ignore the tag, and your portrait shot arrives on its side.
The tag is metadata, which means it can also be lost. Strip metadata for privacy reasons, run the file through a converter that does not preserve EXIF, or paste the image into an app that re-encodes it, and the orientation instruction disappears while the sideways pixels remain.
The permanent fix: bake the rotation into the pixels
The reliable answer is to stop relying on the tag. Rotate the image so the pixels themselves are the right way up, then save it. Every viewer, however old, now agrees on which way is up, because there is nothing left to interpret.
That is what our Rotate and Flip tool does. It draws your image into a canvas, applies the transforms you choose, and exports a new file with the rotation physically applied. Load a photo, click rotate left or rotate right until it looks correct, then process and download. The transforms stack, so two clicks of rotate right gives you 180 degrees.
Why your selfies look wrong to everyone else
Front-facing cameras usually show you a mirrored preview, because that is how you see yourself in a mirror and it feels natural while you frame the shot. Many phones then save the unmirrored version, which is what the camera actually saw. The result is the small shock of a selfie that looks subtly off: your parting is on the wrong side, the text on your shirt reads correctly instead of backwards.
Neither version is more truthful. If the mirrored one is the version you are used to, flip horizontally before you post. The one case where it matters objectively is text in the frame - signage, a whiteboard, a product label. If lettering reads backwards, the image is mirrored, and flipping horizontally is a genuine correction rather than a preference.
Flip vertical is a different animal. It is rarely a correction, since real scenes are not usually stored upside down, but it is useful for building reflection effects and symmetrical patterns.
Is rotating lossless?
Geometrically, yes. Rotating by 90, 180, or 270 degrees just relocates pixels; no interpolation happens and no detail is invented or lost. That is why quarter-turn rotations are considered safe while arbitrary angles are not - rotating by 7 degrees has to resample every pixel and softens the image slightly.
Re-encoding is the part that costs you something. A browser-based tool decodes the JPEG, rotates the pixel buffer, and encodes a fresh JPEG, and that second encode is a new generation of lossy compression. Our tool exports at quality 0.95, which is high enough that the difference is invisible in normal viewing, but it is not bit-for-bit identical to the input. Two practical rules follow: rotate once rather than repeatedly re-saving the same file, and always keep the original if the photo is irreplaceable.
Whole folders at a time
Orientation problems usually arrive in batches - an entire holiday, a full property shoot, every scan from a flatbed that was loaded the same way round. The tool accepts multiple files, applies the same sequence of rotations and flips to all of them, and hands back a ZIP archive. Preview the transform on the first image, confirm it looks right, then run the queue.
Because everything happens through the Canvas API in your own browser, none of those files are uploaded. That matters more than it sounds for photo sets: images straight from a camera often still carry GPS coordinates and timestamps, and the safest place to process them is the machine they are already on.
Related reading
Once orientation is fixed, the next question is usually size. Our notes on resizing versus compressing cover which one you actually need, and the social media size cheat sheet covers the dimensions each platform expects.
Back to blog