Hello, I am facing an issue where image orientation is correctly displayed using the NextJS Image Component locally on my machine and then when I deploy to Netlify the images are rotated sometimes. I was thinking maybe it is not respecting the EXIF image orientation metadata.
I also deployed to Vercel and it is displaying correctly there which is weird.
I tried adding an attribute as per this S/O thread and the images displayed in a way that looked less broken, but they were still not rotated / displaying sideways not as intended.
This is already on our radar and the developers are working on determining the cause. As a matter of fact, they were able to reproduce the issue in various scenarios, thanks to the reproduction you shared, but the actual source of the issue is still unknown.
The source of the issue is google photos doing rotation operations and saving that info via EXIF data instead of ACTUALLY rotating the image and modifying the bitmap.
The photos I am using have been uplaoded to google photos by my phone. Then I go in and use google photos editing features, which lets me rotate them to be displayed correctly (in google photos, and on my desktop when I view images with Preview app).
APPARENTLY this is being done via EXIF data, and some part of the tag optimization process does not respect this. My only solution now is to go in and edit each photo individually, effectively re-exporting the bitmaps as new images that no longer have EXIF data indicating rotation.
Recreation steps:
Upload photo to google photos
Edit photo in google photos, rotate image
Download photo to desktop
Use photo in a next.js site locally (displays correctly)
Unfortunately, as long as the issue linked above is nor resolved, Netlify can’t do anything about it. That’s a dependency of the image processing solution that we provide, so we will have to rely on them to fix it before we can implement it in our code.
@AndrewGroebe, are you certain this is still happening? In Next.js Runtime v5, we have dropped this IPX function and handle it directly via an Image CDN, so chances are things have changed.
It seems my project is not eligible for the Next.js Runtime v5 due to outdated dependencies. Is there any workaround to fix my images before I get around to upgrading dependencies?
Just chiming in to say this is unfortunately still an issue in October 2025. Would love to port my Next.js project over to Netlify but this is a pretty big hurdle