TroubleshootingMarch 21, 2026
Meidy Baffou·LazyPDF

Fix Image to PDF Wrong Orientation: Complete Troubleshooting Guide

You take a photo on your phone, convert it to PDF, and the result shows the image rotated 90 degrees or completely upside down. Or you have a landscape-format photograph that ends up portrait in the PDF, cropped or squished to fit the wrong page orientation. These orientation problems in image-to-PDF conversion are among the most frustrating and common issues users encounter — and they're caused by a surprisingly subtle technical issue. The primary cause of orientation problems is how digital cameras and smartphones store rotation information. When you take a photo in landscape mode with your phone held sideways, the phone typically stores the image with all the pixel data in 'landscape' orientation but adds a small metadata tag called an EXIF orientation tag that tells viewers to display the image rotated 90 degrees. This works fine when your phone's gallery app reads the EXIF data and rotates the display accordingly — but many PDF converters ignore EXIF orientation data, resulting in an unrotated image that appears sideways. This guide covers all the major causes of orientation problems in image-to-PDF conversion and provides specific solutions for each. We'll explain the EXIF issue in detail, cover how to pre-rotate images before conversion, and discuss how to handle pages with mixed orientations in the same PDF.

Understanding EXIF Orientation and Why It Causes Problems

EXIF (Exchangeable Image File Format) is metadata embedded in JPEG files by cameras and smartphones. It includes information like the camera model, exposure settings, GPS coordinates, and — critically — the camera's orientation at the moment of capture. The orientation tag tells compatible software how to rotate the image before displaying it. The problem is that EXIF support is inconsistent. Smartphone gallery apps, modern web browsers, and photo editing software generally read EXIF orientation correctly and display images right-side up. But many file converters — including PDF converters — either ignore the EXIF tag entirely or don't handle all possible orientation values. EXIF orientation has 8 possible values, representing 4 rotations (0°, 90°, 180°, 270°) and their mirror-flipped equivalents. The most common values are 1 (no rotation needed), 3 (180° rotation), 6 (90° clockwise), and 8 (90° counter-clockwise). When a PDF converter ignores this tag, images with values 3, 6, or 8 will appear rotated in the output. The practical impact depends on how you took the photos. Images taken with the phone held in standard portrait mode typically have orientation value 1 (no correction needed) and convert correctly. Photos taken in landscape mode, or with the phone upside down, will have different orientation values and may display rotated in PDFs generated by converters that don't honor EXIF data.

  1. 1Identify if EXIF orientation is the cause by opening your image in a basic viewer like Windows Photo Viewer or macOS Preview — if it looks correct there but is rotated in the PDF, EXIF handling is the issue.
  2. 2Use an image editor to 'bake in' the rotation: open the image in Photoshop, GIMP, or similar, rotate it to the correct visual orientation, and save — this writes the pixels in the correct orientation and sets EXIF orientation to 1.
  3. 3Alternatively, use a tool like ExifTool to strip or normalize the EXIF orientation tag before conversion: run `exiftool -Orientation=1 -n yourimage.jpg` to reset the tag without rotating pixels.
  4. 4Check whether your PDF converter has an 'Auto-rotate' or 'Respect EXIF orientation' option and enable it if available.
  5. 5If converting multiple images, batch-normalize EXIF orientation using a tool like ImageMagick's auto-orient feature before uploading to the converter.

Fixing Page Orientation Mismatches in PDF

A related but distinct problem occurs when a landscape-format image gets placed on a portrait-format PDF page (or vice versa), causing the image to appear squished, cropped, or rotated to fit the wrong page dimensions. Most PDF converters have a default page size (usually A4 or Letter) and orientation (usually portrait). When you convert a landscape photograph to PDF, the converter must decide how to handle the size mismatch. Some converters scale the image down to fit within the portrait page, leaving white space at the top and bottom. Others rotate the image to fit portrait orientation. The best converters automatically detect the image's aspect ratio and set the page orientation to match. LazyPDF's image-to-PDF converter automatically sets page dimensions to match each image's aspect ratio, so landscape photos get landscape pages and portrait photos get portrait pages. This eliminates the need for any manual orientation fixes in most cases. If you're using a tool that doesn't auto-fit, you can manually specify page orientation in the converter settings. Look for 'page orientation,' 'paper orientation,' or 'auto-detect page size' options. Setting orientation to 'automatic' or 'match image' is ideal; if only manual options are available, choose landscape for landscape images. For documents where you're combining portrait and landscape images into a single PDF, check whether the tool supports mixed-orientation pages. Some tools force all pages to the same orientation; others allow each page to use the orientation that best fits the image.

Batch Fixing Orientation for Multiple Images

If you have dozens or hundreds of images with orientation problems, fixing them one by one is impractical. Batch orientation correction tools can process an entire folder of images at once. ImageMagick is a powerful command-line tool that can batch-correct EXIF orientation across many images. The command `mogrify -auto-orient *.jpg` processes all JPG files in the current directory, rotating pixel data to match the EXIF orientation tag and then resetting the tag to 1. This 'bakes in' the correct orientation and eliminates EXIF-related conversion issues. ExifTool is another useful utility for batch EXIF normalization. Unlike ImageMagick's auto-orient, ExifTool can also be used to simply strip the orientation tag or set it to a specific value, which is useful when you want to correct only specific images or when the current EXIF data is incorrect. For a completely browser-based workflow, many online image editors support batch rotation. Upload your images, select all, rotate as needed, and download — then use those corrected images for PDF conversion. When scanning physical documents to PDF, most scanner software includes auto-orientation detection and correction built in. Enabling the 'auto-correct orientation' setting in your scanner driver will handle most orientation issues at the capture stage, preventing them from occurring in the conversion step. After batch-correcting your images, do a spot-check by converting 5-10 representative images to PDF and verifying the orientation before processing the full set. This saves time if you need to adjust your correction approach.

Frequently Asked Questions

Why do images from my iPhone appear sideways in PDF but look correct in my Photos app?

iPhone photos use EXIF orientation tags to indicate how the image should be displayed. The Photos app correctly reads and applies this rotation. Your PDF converter likely doesn't read the EXIF orientation tag, displaying the raw pixel data which may be stored sideways. To fix this, use an app that 'bakes in' the rotation — open the image in any photo editor, rotate it visually to the correct position, and save before converting to PDF.

How do I convert a landscape photo to PDF without it being squished into portrait orientation?

Use a PDF converter that auto-detects image orientation and sets the page size accordingly. LazyPDF automatically matches page dimensions to image dimensions, so landscape images get landscape pages. If your tool forces a fixed page size, look for a 'landscape' orientation option in the settings. Alternatively, pre-process your images by rotating them in a photo editor to ensure the longer edge is horizontal, then check your converter's aspect-ratio-preserving options.

Can I fix orientation in a PDF that has already been created?

Yes. Use LazyPDF's rotate tool or any PDF editor to rotate the pages that are incorrectly oriented. For a single PDF, this is quick and practical. For many PDFs, scripting with tools like pdftk or Python's PyPDF2 library can automate page rotation. Note that rotating pages in an existing PDF doesn't fix any underlying EXIF issues in the source images — for future conversions, fix the EXIF orientation in the source images rather than correcting the PDF afterwards.

Why does only one page of my multi-image PDF have wrong orientation?

This indicates that specific image(s) in your batch had a different EXIF orientation tag than the others. Images taken in different orientations (some portrait, some landscape) or images that came from different cameras may have different EXIF orientation values. Review each source image individually in an EXIF viewer (like ExifTool or the 'Details' tab in Windows Explorer) to identify which images have non-standard orientation tags.

Convert your images to PDF with automatic orientation detection — LazyPDF handles EXIF rotation correctly so your pages always look right.

Try It Free

Related Articles