javascript - Bad image rotation -
i have issue javascript when rendering image before upload in correct rotation. seems when render image witch have correct rotation on exif data browser doesn't use it. users see different rotation between have on system on when image displayed on website javascript. the code basic: do know simple way correct rotation bug ? lbemeraude.handleimage = function (f) { if (f.type.match('image.*')) { var reader = new filereader(); reader.onload = (function (file) { return function (e) { var image = {}; image.dataasurl = e.target.result; lbemeraude.renderimage(image); }; })(f); var image = reader.readasdataurl(f); } } lbemeraude.renderimage = function (image) { var eimage = lbemeraude.createimgelement(image.dataasurl); $('someelement').append(eimage); }; lbemeraude.createimgelement = function (src) { var image = document.createelement(&