Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Image rotated 180 degrees in some places

Solved by Mark Berthelemy View solution

Started by Mark Berthelemy 3 years ago · 7 replies · 1083 views
3 years ago

Hi there,
I've been using Grav happily for a while. Today I uploaded an image to a blog post item and it's displaying oddly.

On the post itself the image displays fine:

https://campingledrennec.com/fr/blog/2024-04-09-and-were-off

On the list of posts, it's rotated 180 degrees:

https://campingledrennec.com/fr/blog

In the editor, the image is showing upside down.

I have looked in the EXIF data. It shows Orientation: Rotate 180

When I change that to Horizontal (normal) it makes no difference in Grav.

When I view the image on my laptop (Windows) it displays fine.

Any ideas?

Thanks,

Mark

3 years ago

@berthelemy, A similar issue was discussed some time ago on Discourse and github. There was a bug involved which was fixed. Maybe the (lengthy) threads contain some helpful information.

3 years ago

@berthelemy, What fiddling you've being doing with Digicam might be of interest to others facing the same issue...

3 years ago Solution

Good question.

Originally the orientiation was set to Rotate 180. The photo appeared the right way up in Digikam.

I set it to Normal and nothing changed in Digikam.

I then set back to Rotate 180 and the photo rotated by 180 degrees in Digikam.

I then set it back to Normal and the photo rotated to the right way up in Digikam.

I uploaded this photo, and Grav displayed it fine.

I had tried other, online, EXIF editors before this. None of which made any difference to the uploaded image. Digikam meant I could quickly change and test out different orientations.

But I have no idea why this particularly combination of settings works.

👍 1
3 years ago

@berthelemy were you flushing the cache between your EXIF edits? I'm curious about the number of steps it took and you didn't mention this.

3 years ago

I used a different filename for each test, so the caching shouldn't have been an issue. But I did flush the cache a few times too. It made no difference.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago