scottcheng / cropit

A "customizable crop and zoom" jQuery plugin.
http://scottcheng.github.io/cropit/
MIT License
874 stars 307 forks source link

Image rotates when dowloaded #213

Open kinexm opened 7 years ago

kinexm commented 7 years ago

In some cases, when a image is taken using the camera and uploaded, the result image (Cropped) gets rotates. Here are the steps:

  1. Take iPhone 6
  2. Click on Select A New Image
  3. Click on Take Photo
  4. Take a picture and select
  5. Click on the Download cropped Image
  6. Result: The image will be automatically rotated in 90 Degrees.

By default, the rotation shouldn't happen and the picture should in the right rotation. Let me know if you need more information or screenshots.

robinhuse commented 7 years ago

I am having the same issue. Is there a way around this?

akrawchyk commented 7 years ago

This is an issue I've encountered with images uploaded from iOS devices as well. I believe it's due to embedded EXIF data in the image, presumably from the iOS camera app, see http://sylvana.net/jpegcrop/exif_orientation.html for more details.

You'll need to either: