TroubleshootingMarch 13, 2026

Image to PDF Wrong Orientation: Why Images Rotate and How to Fix It

Converting a batch of photos to PDF and finding that half of them are rotated 90 degrees sideways — images that looked perfectly upright on your phone or computer are suddenly on their sides in the PDF — is one of the most common and baffling image conversion problems. You did not rotate anything, yet the output is wrong. The culprit in nearly every case is EXIF orientation metadata. Modern cameras and smartphones record the device's physical orientation when a photo is taken and store this information as a flag in the image file. The flag tells viewing software how to display the image correctly. Some tools read and honor this flag; others ignore it and use the raw pixel data, which may be stored rotated relative to how you perceive the image. This guide explains EXIF orientation in practical terms, identifies which tools handle it correctly, and provides step-by-step fixes for images that arrive in the wrong orientation in your PDF output.

EXIF Orientation: The Hidden Rotation Flag

Every JPEG image taken by a smartphone or digital camera contains EXIF metadata — a block of technical data that includes camera settings, GPS coordinates, and crucially, orientation information. The Orientation tag (EXIF tag 274) contains a value from 1 to 8 that describes how the image should be displayed relative to how the pixels are stored. When you hold your phone vertically (portrait) and take a photo, many phones store the image pixels in landscape orientation (the sensor's native orientation) and record EXIF Orientation = 6, which means 'rotate 90 degrees clockwise when displaying'. Viewing apps that read EXIF orientation rotate the image automatically, so you see a correctly-oriented portrait photo. Apps that ignore the EXIF tag display the raw landscape pixels — your portrait photo appears sideways. Image-to-PDF converters must decide whether to honor the EXIF orientation flag. Tools that do (Apple's Preview, Google Photos, modern browsers) produce correctly-oriented PDF output. Tools that do not (many simple converters, older software, batch processing utilities) ignore the flag and embed the raw pixels, producing a rotated result in the PDF.

  1. 1Check whether your images have EXIF orientation issues by opening them in Windows File Explorer (Details pane shows Orientation value) or macOS Preview (Tools → Show Inspector).
  2. 2If the images look correct in your viewer but rotated in PDF output, the PDF tool is ignoring EXIF orientation.
  3. 3Use LazyPDF's Image to PDF tool which reads and applies EXIF orientation during conversion, producing correctly-oriented output.
  4. 4Alternatively, strip EXIF orientation by baking it into the pixels — open each image in Paint (Windows) or Preview (Mac), rotate to correct visual orientation, and save. This removes the ambiguity.

Fixing EXIF Orientation Before Converting

The most reliable way to prevent orientation issues in PDF conversion is to normalize your images before converting — bake the EXIF orientation into the pixel data so there is no ambiguity. This involves opening the image, applying the rotation that the EXIF tag calls for, and saving the result. The saved file has orientation 1 (normal) in its EXIF data, and all tools will display it correctly. On Windows, opening a photo in Paint and saving it re-encodes the image with applied orientation. On macOS, opening in Preview and doing File → Export applies the EXIF rotation to the pixels. On both platforms, these simple open-and-save operations normalize the orientation. For batch normalization, the free command-line tool ExifTool handles this efficiently: `exiftool -Orientation=1 -overwrite_original *.jpg` removes the EXIF orientation flag. A better approach that actually rotates the pixels is `jpegtran -rotate 90 input.jpg -o output.jpg` — but you need to know which rotation to apply. The ExifTool approach of using `-n -Orientation=1 -overwrite_original` combined with a JPEG rotation tool based on the original Orientation value is the cleanest automated solution.

  1. 1On Windows: open images in Microsoft Photos, rotate them to correct visual orientation, and save — Photos bakes the rotation into pixels.
  2. 2On macOS: open images in Preview, use Tools → Rotate Right/Left until correctly oriented, then File → Export to save with baked-in rotation.
  3. 3For batches: use ExifTool with the '-auto-rotate' option to normalize all images in a folder.
  4. 4After normalization, convert to PDF — all images will appear in the correct orientation regardless of which tool processes them.

Page Orientation Mismatch: Portrait Images on Landscape Pages

A separate but related problem is page orientation. When converting a mix of portrait (vertical) and landscape (horizontal) photos to PDF, some tools create a PDF where all pages are a fixed orientation — either all portrait or all landscape. Portrait images placed on landscape pages appear with wide margins on either side, and landscape images on portrait pages appear small. The correct behavior for a quality image-to-PDF converter is to match page orientation to the image — portrait images get portrait pages, landscape images get landscape pages. This produces a PDF where each page is the same shape as the image it contains, with minimal white margins. LazyPDF's Image to PDF tool creates pages sized to match each image, so portrait images get portrait pages and landscape images get landscape pages automatically. If your current tool creates fixed-orientation pages, look for a 'smart orientation' or 'match page to image' option in its settings.

  1. 1Check your converter's page orientation settings — look for 'auto', 'smart orientation', or 'match image orientation' options.
  2. 2If using a tool that only creates fixed-size pages, pre-separate your images into portrait and landscape groups before converting.
  3. 3Convert each orientation group to a separate PDF, then merge the results using LazyPDF's Merge tool.
  4. 4Verify the merged output has correctly-oriented pages for all images.

iPhone HEIC Images and Orientation Problems

iPhone photos in HEIC format have an especially common orientation problem because HEIC files are even more reliant on EXIF orientation metadata than JPEG. HEIC (High Efficiency Image Container) is Apple's format that stores images very efficiently — but many non-Apple tools have limited HEIC support and may not correctly read the orientation metadata. When you upload an HEIC image to an online PDF converter, the tool must first decode the HEIC format, then apply the orientation, then embed the image in the PDF. If the tool's HEIC decoder does not apply EXIF orientation, the image will be in the wrong orientation in the output. The simplest fix is to convert HEIC images to JPEG before uploading to a PDF tool. On iPhone, go to Settings → Camera → Formats and select 'Most Compatible' to have the camera save in JPEG format going forward. For existing HEIC files, use macOS Preview or Windows 'Photos' app to open and export as JPEG — these apply the correct orientation during the format conversion. The resulting JPEG files convert cleanly to PDF in any tool.

Multi-Image Batch Conversion Order and Orientation

When converting multiple images to a single PDF, two things can go wrong simultaneously: individual images may be rotated incorrectly (the EXIF issue), and the order of pages may not match the order you intended. Batch conversion tools often sort images alphabetically by filename, which may not match your intended sequence. IMG_3045.jpg, IMG_3046.jpg, IMG_3047.jpg sorts correctly alphabetically. But if your images have arbitrary names or came from different devices, alphabetical sort may not produce the desired document order. Always check the page order in the tool's preview before converting, and rename files with numeric prefixes (01_, 02_, 03_) if you need a specific non-alphabetical order. For orientation control in batch conversions, normalize orientation before converting (as described earlier) rather than relying on the conversion tool to handle it. This separates the two concerns: get orientation right on the source images, then focus purely on page order during conversion. This approach is more reliable and easier to verify at each step.

Frequently Asked Questions

My images look correct on my phone but appear rotated in every tool — why?

Your phone is displaying the images with EXIF orientation applied (making them look correct), but the raw pixels are stored rotated relative to how you see them. Tools that do not read EXIF orientation show the raw pixel orientation. This is extremely common with phone photos because smartphone sensors are physically oriented in landscape, and portrait photos are stored as landscape images with an EXIF flag telling the viewer to rotate them 90 degrees. Normalize the images by opening and re-saving in an EXIF-aware app to fix this permanently.

Can I fix the rotation after converting to PDF?

Yes. If the resulting PDF has incorrectly oriented pages, use LazyPDF's Rotate tool to rotate specific pages by 90, 180, or 270 degrees. This is often faster than re-converting if only a few pages are affected. Select the specific pages that need rotation, apply the correction, and download the fixed PDF. For large batches of incorrectly oriented pages, it is usually faster to fix the source images and re-convert than to rotate many individual pages in the PDF.

How do I keep images from being resized when converting to PDF?

Image-to-PDF tools typically scale images to fit a standard paper size (A4, US Letter). If your images are a non-standard aspect ratio, white margins are added. To prevent resizing to standard paper, look for a 'fit to image' or 'custom page size' option that creates pages exactly the size of each image with no margins. LazyPDF's Image to PDF tool creates pages sized to each image by default. Alternatively, specify custom page dimensions that match your image dimensions exactly.

Convert images to PDF with perfect orientation using LazyPDF — EXIF-aware conversion that gets portrait and landscape right automatically.

Convert Images to PDF Free

Related Articles