JPEG rotates after cleaning metadata? How to fix it
Fix a sideways JPEG in a company press kit by checking its EXIF orientation, restoring the rotation, and exporting a clean copy safely.
A photo looked right before you cleaned it, but now it appears sideways in the company press kit. The image may still contain the same pixels: the cleaning step may have removed the small EXIF orientation note that tells some programs how to display them.
Check whether the problem affects the cleaned copy or only one viewer. Then make a corrected copy with the photo physically upright before removing private metadata again. Keep the original untouched until the press kit has been checked in the apps your team and publisher use.
Check the JPEG before changing it
- Make a copy. Duplicate the original and the cleaned JPEG. Give the files clear names, such as
photo-original.jpgandphoto-cleaned-test.jpg. Do not overwrite the only source file. - Compare both copies. Open the original and cleaned file in the same image viewer. If the original is upright and only the cleaned copy is sideways, the cleaning step likely changed or removed orientation information.
- Check another viewer. Open the cleaned copy in a second program or browser. If it is upright in one place and sideways in another, the file may rely on an orientation tag that the programs handle differently.
- Inspect the orientation field if available. A metadata viewer may show an EXIF field called
Orientation. A value of1means normal orientation, while3,6, or8indicate a rotation. The values2,4,5, and7also involve mirroring.
EXIF is information stored alongside a JPEG, such as the camera model, date, location, and orientation. Many cameras save the photo pixels in one direction and use the orientation field to tell software how to display them. If a cleaner removes that field without turning the pixels, a previously upright image can appear rotated.
What the result means
Only the cleaned copy appears sideways
The cleaning process is the likely cause. It may have removed the orientation field or changed it to a value that no longer matches the image. Use the untouched original as the source for a corrected export.
The photo looks different in different programs
Some viewers apply the orientation field and others may ignore it or interpret it differently. The press kit could therefore look correct on your computer but arrive sideways for a publisher. Normalize the image so its pixels are upright and its orientation is set to normal, commonly value 1.
Both copies are sideways everywhere
The original may already have been saved in the wrong orientation, or the camera may have recorded the image that way. Rotate a duplicate until the subject is upright, then export it as a new JPEG.
The photo is upright, but appears mirrored
This can also be an orientation problem. Check that a face, sign, or other familiar detail is not reversed. A mirrored orientation value is not the same as an ordinary quarter-turn, so choose a correction that fixes both direction and mirroring.
How to fix the JPEG
- Return to the uncleaned original. If it displays correctly, make a fresh copy from that file. If your cleaner has an option to remove selected metadata, keep the orientation field. Do not assume every cleaner offers that choice.
- Rotate the image pixels, not just the preview. If no correctly oriented original is available, open a duplicate in an image editor and rotate it until it looks right. Save or export a new JPEG, and check that its orientation is normal or that the pixels remain upright when the orientation field is removed.
- On Windows 11, make a corrected copy in Paint. Open the duplicate in Paint, use the rotate control to choose the needed quarter-turn, then choose File and Save as to create a new JPEG. Check the exported copy before cleaning it. Saving a JPEG again can slightly change image quality.
- On macOS, correct a copy in Preview. Open the duplicate, choose File › Duplicate, then use Tools › Rotate Left or Tools › Rotate Right until the photo is upright. Choose File › Export, select JPEG, and save under a new name.
- Clean the corrected export once. Remove the metadata you do not want to share, but avoid another rotation or conversion unless needed. If the cleaning tool offers a choice, preserve orientation or normalize it to the standard upright value.
- Verify the final press-kit file. Close and reopen it in at least two viewers. Confirm that it is upright, not mirrored, and still has the expected crop and dimensions. Check the actual file you plan to send, not an earlier copy.
Keep private details out of the press kit
Removing metadata can help prevent a press image from revealing a location, capture date, or device details. But deleting every EXIF field can remove orientation information too. The safer workflow is to make a corrected export first, check that the image is physically upright, and then remove the metadata you do not need.
Keep the original in a private working folder and send only the verified, cleaned copy. If the image becomes sideways again after cleaning, stop and use a different export or cleaning method rather than repeatedly overwriting the source.
