felixrieseberg / felixrieseberg/React-Dropzone-Component

Correct image orientation?

Open
#136 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
999
Forks
148
PR merge metrics
No merged PRs in 30d

Description

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](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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.