Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Image rotated 180 degrees in some places

Solved by Mark Berthelemy View solution

Started by Mark Berthelemy 2 years ago · 7 replies · 256 views
2 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

2 years ago

On the list it's an image. On the page it's a background. I would assume, that background doesn't care about EXIF data. Did you try completely removing orientation from EXIF data?

Also you could try fixOrientation, but I doubt it would help

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

2 years ago

Thank you. I did some fiddling with the orientation tag in Digikam and managed to make it work OK.

2 years ago

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

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

2 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 Thomas, 1 week ago
2 50 6 hours ago
Support · by Anna, 2 days ago
2 58 9 hours ago
Support · by Justin Young, 10 hours ago
1 28 10 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 53 5 days ago