![]() |
Automatic image rotation based on EXIF data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Automatic image rotation based on EXIF data (/showthread.php?tid=55034) |
Automatic image rotation based on EXIF data - El Forum - 10-06-2012 [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). Automatic image rotation based on EXIF data - El Forum - 10-07-2012 [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 Automatic image rotation based on EXIF data - El Forum - 10-09-2012 [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. Automatic image rotation based on EXIF data - El Forum - 10-21-2012 [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. |