Troubleshoot Rotated Portrait Images in SharePoint Online Web Parts
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.

- 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.
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.
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.
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.
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.
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.
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.

Test whether EXIF orientation affects the JPEG rendering
Use a single test copy to check the metadata hypothesis before considering any image-processing workaround.
Escalate reproducible rotation without imposing manual edits
Use this when the issue persists or when correcting individual uploads is not practical.
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.

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.




