I fixed not to rotate image files uploaded to Nextcloud.
You just need to install exif extension.
Nextcloud will automatically use exif information and rotate proper orientation.
This is which I referred.
Thanks a lot!
This is my git commit.
Please refer for more detail.
I changed to use php:8.0.15-fpm-buster because latest tag will use upper PHP version than Nextcloud supports which is 8.0.
This isn’t related to this post so you may skip it.
This is before fix.
Some image is rotating…
This is after fix.
Beer/wine orientation is good!
You will need to create preview thumbnail again if you already created.
You can refer this post how to create again.
How was it?
You won’t be irritated when you see photoes!