laravel-image-legacy icon indicating copy to clipboard operation
laravel-image-legacy copied to clipboard

Potrait images from iphone got rotated 45 degrees

Open Kyosfonica opened this issue 8 years ago • 1 comments

Hi,

I experience an issue with mobile phones. When I upload an image to my server and then run the image crop from a portrait image it gets cropped and rotated 45 degrees anti-clockwise. This only occurs when the image is taken using an iPhone.

On android devices it works as expected.

Does anyone have a clue of what can be happening?

The code I use to make the crop is as follows: Image::url($user->image,200,200,array('crop'))

$user->image is the route to the original image file that is uploaded exactly as it was taken, portrait.

Kyosfonica avatar Dec 12 '16 14:12 Kyosfonica

Same issue, some get rotated 45, others 180!?

alexcroox avatar Jan 09 '18 08:01 alexcroox