Image rotation issue

5 posts by 5 authors in: Forums > CMS Builder
Last Post: September 19, 2014   (RSS)

I was looking into this some time ago - but didn't get very far...  It's because the phone taking the images is held vertically at times and horizontally at others.

In each jpg image, there is EXIF headers, which are meant to identify whether the photo is portrait or landscape etc.  Maybe this can help: http://php.net/manual/en/function.exif-read-data.php

Cheers,

Tim (toledoh.com.au)

By Mikey - September 17, 2014

Yea - this is an common issue I've been trying to figure out a solution for. There are some third party solutions you could provide links to and would allow image manipulation, download once complete, then upload... but as far as the user knows - the image appears fine until uploaded, so it's a backward approach to the issue.

There was a tinymce image manager, but it appears to have been migrated into a new solution. This is the first time I've seen the new solution and it looks interesting http://www.moxiemanager.com/demos/

I may just give this a test drive and see what I get and if I find value in it as a solution for my clients. If I think it's worth looking into further I'll pass on what I discover.

We had to handle something like this for a project, and if I recall right the only real solution was to strip the EXIF data and give the user the option to rotate the image before it was saved.

The biggest issues we had were with iOS. Apparently Apple has some odd way of dealing with EXIF, go figure. If this turns out to work well on mobile devices, do let us know.

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Codee - September 19, 2014

Have you considered, or looked into, using Image Magick as a 3rd party solution that works ON the server after upload?  Years ago some great programmers at a company I was working with found that Image Magick was a fantastic solution that worked for their vehicle classifieds site that was essentially error-free.  Here's a SourceForge link to it (but lots of information and links can be found via Googling):

http://sourceforge.net/projects/imagemagick/

Good luck!