Hello. I want to start using Netlify image CDN to serve images on my website. I’m trying to serve images from an external website via CDN. However for some reason when the images go through the CDN they get rotated if they are landscape images. Here’s an example:
And try to open it like so https://main--netlify-image-issue.netlify.app/.netlify/images?url=https://drive.usercontent.google.com/download%3Fid=1tlKPARh4_YwL8bUHYR9rkbfBbJvcvpsm
It is rotated 90 degrees.
I tried with a portrait image from a different source and couldn’t reproduce, so I’m guessing it’s related to how Google drive is serving images, but not sure what could be done.
I also observed that it starts rotating in different directions, on different deploys. One it starts it consistently rotates them in the same direction.
@AugustinGrigorov This is likely due to the exif data orientation within that particular image.
If you haven’t already, you could try inspecting that, what the value is, if it’s the same/different from your other images and if adjusting it has an impact.
sorry for the trouble with the Image CDN feature. We’ve recently made some changes to the feature, but i’ve now excluded you from the rollout of those changes.
Can you check if you’re still running into problems or if everything works as expected? You might need to redeploy the site for caches to be invalidated