felixrieseberg / React-Dropzone-Component

:camera: ReactJS Dropzone for File Uploads (using Dropzone.js)
MIT License
1k stars 154 forks source link

Correct image orientation? #136

Open paulwalczewski opened 7 years ago

paulwalczewski commented 7 years ago

Hi,

I'm trying to implement mechanism that will correct wrong image orientation based on EXIF parameter.

So far I've followed @haoxi911's answer from https://github.com/enyo/dropzone/issues/46, so I included loadImage library, hook into the addedfile event, but it seems that whatever I pass to emit:

loadImage(thumbnail, function (img) { self.emit('thumbnail', file, img.toDataURL()); }, { orientation: orientation }); return; it is not used at all within React component. I've tried disabling default thumbnail generation by both setting createImageThumbnails to false in config, and prop data-dz-thumbnail to false, but I'm still getting default rotated thumb.

Any clues why that is not working?

Or if anyone has a working solution for correcting image orientation with this library, could you please share? ;) Thank you.

akio46 commented 5 years ago

@paulwalczewski Were you able to resolve this?

charinduedirisuriya commented 4 years ago

@akio46 any update on this?