Level 8
If you are using an image manipulation package like intervention/image you can use its orientate() method.
// instantiate image with auto-orientation
$img = Image::make('foo.jpg')->orientate();
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm using windows and when a user uploads a thumbnail image from an ios device then it rotates 90 degrees, does anyone know about a fix for this? I know it's related to exif data, I found this link https://github.com/avalanche123/Imagine/commit/447b572c41e503891c8286c620e2e5244a526658 but have no idea how to add this into laravel.
Please or to participate in this conversation.