SharePoint Document Issues

Troubleshoot Rotated Portrait Images in SharePoint Online Web Parts

Aamir Naveed AkramAamir Naveed Akram Nov 13, 2026 868 views

Question details

The user needs portrait JPEG images to display upright in SharePoint Online web parts without requiring users to manually edit every uploaded photo.

Troubleshoot Rotated Portrait Images in SharePoint Online Web Parts
Product
Microsoft SharePoint Online
Device & OS
not provided
Scenario
Portrait photos, potentially taken on phones and containing EXIF orientation metadata, are uploaded to a SharePoint picture library and displayed through web parts.
Observed behavior
The images display correctly in the picture library but appear rotated in web parts, including reported cases involving Search and other web parts.
Before you start

Choose one affected JPEG and note the page, web part, and library where it appears. Use a separate test page and a copy of the image so you can compare rendering and metadata without changing the production photo.

Solution 1Recommended

Compare the same portrait JPEG across SharePoint web parts

Use this first to determine whether the rotation is specific to one web part or occurs across several rendering paths.

Correct orientation in the library does not guarantee identical rendering in a web part. Testing in the reported case did not reproduce the issue with all portrait JPEGs, so image dimensions alone do not establish the cause.

1
Confirm the source image

Open the affected picture library and select a rotated photo. Compare its library preview with the version shown on the page, and verify that the web part references the same file rather than another copy.

2
Add a test Image web part

On a modern test page, select Edit, click the plus sign to add a web part, and choose Image. Select the affected JPEG from the site and save or publish the test page.

3
Test another rendering path

Edit the test page again and add an Image Gallery web part using the same JPEG. Where supported, also test a Document Library web part connected to the relevant library. If the original issue occurs in a Search web part, record that result separately.

4
Record the differences

Open the saved test page and compare each result with the library preview. Record which web parts rotate the image, whether the rotation direction is consistent, and whether the behavior also occurs in another current browser.

Compare the same portrait JPEG across SharePoint web parts
A comparison is diagnostic, not a guaranteed fix: If one web part displays the image correctly, it may offer a temporary publishing option. If several web parts rotate it, continue with the metadata test rather than assuming the issue is limited to one component.
Free Microsoft Office alternative

Use WPS Office for Documents That Include Portrait Photos

WPS Office does not fix SharePoint Online web part rendering. For related document work, it offers a free, lightweight Office alternative with familiar editing tools and Microsoft Office format compatibility, making it easy to continue working with existing files.

Place and arrange portrait photos in documents or presentations independently of SharePoint web part rendering.Open and edit Microsoft Word .docx, Excel .xlsx, and PowerPoint .pptx files.Use a familiar interface to transition from Microsoft Office with minimal changes to everyday workflows.Work with documents, spreadsheets, and presentations in one lightweight application.
microsoft office alternative - wps office

Frequently Asked Questions

Why does a photo look upright in the library but sideways in a web part?

The library preview and the web part may process the image differently, including how they interpret EXIF orientation. Compare the same file in an Image and an Image Gallery web part on a test page to narrow down the affected rendering path.

Does this affect every portrait JPEG taken on a phone?

No. Tests described in the record displayed some portrait JPEGs correctly in modern web parts. Phone origin and portrait dimensions alone do not prove that an image will rotate; test an affected file and inspect its EXIF Orientation value.

Do all users need to save their photos as PNG files?

No. Exporting one affected photo as an upright PNG can help diagnose the problem, but it is not a required solution for every upload. If normalization helps, ask the administrator to evaluate centralized processing or escalate the rendering issue.

Will removing EXIF metadata make the photo upright?

Not necessarily. If the pixels are stored sideways, removing the orientation instruction can make the image display incorrectly. Use an editor that applies the orientation to the pixels before resetting or removing the orientation metadata.

Can WPS Office repair SharePoint web part image rotation?

No. WPS Office can help create documents and presentations containing portrait images, but it does not control SharePoint Online rendering. Diagnose the issue on a SharePoint test page and contact your Microsoft 365 administrator if it persists.