Automatic image rotation based on EXIF data |
[eluser]TheCodee[/eluser]
The library automatically rotates the provided image based on the embedded EXIF data. I use it in my projects to correctly display images uploaded from mobile devices. Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); Usage example: Code: $imageinfo = $this->upload->data(); Inspired by this post on PHP.net (thanks to the author).
[eluser]jmadsen[/eluser]
nice - I like simple, useful classes. You should consider posting to a github repo and/or composer to make it easier to bookmark and share
[eluser]TheCodee[/eluser]
Thanks for feedback. It's certainly in my plans to share this on github, but as of the time being I'm pretty busy with my projects. I'm new to Codeigniter (and I absolutely love it) so I wanted to hear from other community members if anyone had the same issue with mobile devices and if the problem was supposed to be solved in some other way.
[eluser]TheCodee[/eluser]
Here is a GitHub link as requested. Share and enjoy! P.S. I was not able to update my original post with a link due to forum's restrictions. |
Welcome Guest, Not a member yet? Register Sign In |