Image rotation issue

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

By zip222 - September 16, 2014

I am experiencing ab issue with a blog I recently setup for a client. With each blog post, the users can upload photos using the standard "upload" field. The issue is that many, but not all, of the vertically-oriented images are not being displayed in the correctly rotated format after upload. The photos come from several different users and different cameras. Anyone experienced this before and have any suggested work-arounds?

By Toledoh - September 17, 2014

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.

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!