I am developing a web application that involves the feature of uploading image to server. I am using Laravel. The problem is when I upload a photo, Laravel is rotating the image.
This is my code to upload image file.
$request->file('image_file')->store('images');
Just one line of code for uploading the image.
I uploaded this image.
Then, the photo is rotated on the server and becomes like this. I display the image in the HTML tag.
So, what is wrong. How can I stop the photo from being rotated?