felixrieseberg/React-Dropzone-Component

take a picture in mobile IOS

Opened this issue · 2 comments

When take a picture in mobile IOS, the picture rotate to 90º automatically

how to fix this to blocked rotate ?

i using the react-dropzone-component, but when take the picture in iphone the orientation is changed, because the exif image, i not have any idea for change and rotate image in component, i tryed in complete and addedFile functions to change the thumbnail and image, but i not have success. anybody can help me ?

https://codepen.io/deboracgs/pen/GeXrpY

@felixrieseberg @fritz-c @hansoksendahl @bdefore @ko @ciceropablo @erikschlegel @neonaut @bdefore

Example:
https://codesandbox.io/s/k917974wyo

Dropzone.js is supported to rotate the photo based on exif data. It is just required to export the exif-js to window object (line 9 in InputDropzoneComponent.jsx).

Code inside Dropzone.js
https://gitlab.com/meno/dropzone/blob/eba303e91c930292198b2fc57040145682162a1b/src/dropzone.js#L1684