1

I have a web application (using AngularJS) in which users can upload a profile picture and before saving the image they can adjust they photo with some cropping tool.

The issue is that when I'm uploading photos taken with an iPhone in portrait mode, all this images are rotated 90 degrees. The only way that images are uploaded correctly is if the user takes the picture in landscape mode (iPhone oriented with volume buttons pointing down).

I need a solution to make this work, no matter phone orientation when taking pictures.

My example

Blu
  • 4,036
  • 6
  • 38
  • 65
HClaudiu
  • 90
  • 9
  • IPhone images have a info about Orientation you can use that to rotate exact orientation you want in server. What server language you use? – Blu Mar 25 '15 at 14:15
  • PHP with Mongo DB. But I don't want to make the image rotation on the server. – HClaudiu Mar 25 '15 at 14:47
  • If you want in client side then maybe this will help. http://stackoverflow.com/questions/20600800/js-client-side-exif-orientation-rotate-and-mirror-jpeg-images – Blu Mar 25 '15 at 15:02

0 Answers0