spatie / laravel-glide

Easily convert images with Glide
https://freek.dev/2015/12/easily-convert-images-with-glide/
MIT License
424 stars 51 forks source link

Pass path to image so Glide can access EXIF data #45

Closed judereid closed 8 years ago

judereid commented 8 years ago

Hey there,

I noticed an issue where the 'auto' orientation manipulation. If the EXIF data isn't available Glide/Intervention doesn't know what the correct orientation is. This is a problem if you have users uploading images taken from mobile devices, as the orientation will be incorrect if taken as "portrait".

If you pass the path to the file instead of using file_get_contents Glide can access the EXIF data and 'auto' set the correct orientation.

freekmurze commented 8 years ago

Thanks!