close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Image rotating on upload

Thread began 6/05/2015 11:49 am by Dave W | Last modified 6/10/2015 3:21 pm by Ray Borduin | 926 views | 9 replies |

Dave W

Image rotating on upload

Hi,
When using the upload image I am finding that it loads horizontal images fine, but when I upload an image that is taller than it is wide it rotates the image so I finish up with the image liying on it's side as in example 2. (image on right)
Why is this happening?

Sign in to reply to this post

Jamie

Are these images that you have taken with an iPhone or iPad? If so, its how they are created and its stored, I believe, in the exif data and you would need to do a search on how to get round this. A quick search found this: http://iphonephotographyschool.com/iphone-photos-upside-down/

All the best

Jamie

Sign in to reply to this post

Dave W

Originally Said By: Jamie
  Are these images that you have taken with an iPhone or iPad? If so, its how they are created and its stored, I believe, in the exif data and you would need to do a search on how to get round this. A quick search found this: http://iphonephotographyschool.com/iphone-photos-upside-down/

All the best

Jamie  


Thanks for that Jamie. If Ray can't sort it I will look into your idea.
P.S.
Just followed your link and that would be good if that were the problem, but the photos on my computer are all the correct way up, it's only when using file upload that they revolve 90 degrees.
But thanks for trying to help :-)

(See text I've added to Ray's message which probably proves that you were right in asuming it was taken on a mobile)

Sign in to reply to this post

Ray BorduinWebAssist

Can I get a copy of the page you are using so I can see all of the settings as well as the image you are uploading? I'll try to reproduce and debug the problem to find a solution.

Sign in to reply to this post

Dave W

Hi Ray,
Attached page and image. The image was provided by my client for testing purposes.
As you can see using your upload it came in revolved 90 degrees.

Update
It does appear that this photo was taken with a mobile. I tried uploading a portrait photo that I knew was taken with a normal digital camera, and that worked fine, but on uploading a portrait photo that I took with my mobile the image was rotated 90 degrees again.
So I don't know whether you will be able to help at all.

Update.
I think I have proven that it is not the file upload that is at fault. There is a quite simple way around this problem, though not suitable for a clients website, you just open the image up in photo editing software, rotate the image 90 degrees one way and then rotate it back again and it uploads fine.
The problem lies in the data that is stored in the EXIF tags of the image, so I think that MAY be a problem that can't be resolved without a lot of work and expense on Web Assist's side.

Sign in to reply to this post

Ray BorduinWebAssist

I've gone ahead and added the necessary code to read exif data and rotate the image on upload. Just use the attached helper file in place of the one created by the extension and make sure you have specified "web images only" in the upload server behavior and it should make the necessary rotations.

This code depends on you having the php_exif.dll extension enabled in your php.ini file.

Attached Files
helperphp.php
Sign in to reply to this post

Jamie

Hey Ray

is that to go in the foldwe webassist/file_manipulation/ ?

Cheers

Jamie

Sign in to reply to this post

Dave W

Hi Ray,
Thanks for the file and taking the time to sort it out, I can only say that WebAssist really DO care about their customers.
Is this something that will be included in a future update or would it be wise to keep the page for future use?
Thanks again.
Dave

Sign in to reply to this post

Ray BorduinWebAssist

We will include it in the next release of Data Bridge.. but hold onto a copy for now until we have it out.

Sign in to reply to this post

Dave W

OK Ray, will do and thanks again for your help

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...