I have this weird behavior when I upload an image, and if this image size has a higher height than when the image is increased by 90 degrees.
check fiddle using ngImgCrop and this is the image i load
ngDmgCrop code is pretty standard:
angular.module('app', ['ngImgCrop']) .controller('Ctrl', function($scope) { $scope.myImage=''; $scope.myCroppedImage=''; var handleFileSelect=function(evt) { var file=evt.currentTarget.files[0]; var reader = new FileReader(); reader.onload = function (evt) { $scope.$apply(function($scope){ $scope.myImage=evt.target.result; }); }; reader.readAsDataURL(file); }; angular.element(document.querySelector('#fileInput')).on('change',handleFileSelect); });
How can I fix this behavior?
angularjs angularjs-directive
jack.the.ripper
source share