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

Image rotation issue

Started by Muut Archive 10 years ago · 3 replies · 700 views
10 years ago

When i upload images, some of the images automatically rotated. Is it because of the file size? Or is it because that the image is in vertically inclined?

Any help would we appreciated. Thanks ! :)
I hope you guys can help me with this issue. Helpme

10 years ago

It's because of EXIF data in the picture. The picture is not really rotated, but its orientation is defined in the EXIF. Happens with images taken with phones/cameras.

Grav cannot read it yet. I almost got it working but there are some changes needed in the Image library we use, which we have no control upon. I proposed the changes, but they have not been merged yet: https://github.com/Gregwar/Image/pull/109

The best option now is to remove the EXIF data from the image, rotate it, and then upload it.

10 years ago

Thanks for the quick response @flaviocopes

10 years ago

BTW, you can rotate manually in Grav with the rotate image command, so something like:

TXT
![Sample Image](sample-image.jpg?cropZoom=300,200&rotate=-90)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1360 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2958 9 years ago
Archive · by Muut Archive, 9 years ago
3 1122 9 years ago