Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with large images not rendering #1

Merged
merged 1 commit into from May 19, 2017
Merged

Conversation

hbbh
Copy link

@hbbh hbbh commented Mar 23, 2015

Update the crop-host.js file to fix an issue with images taken from devices with high MP cameras. Reduce canvas size to 1000px if required.

Update the crop-host.js file to fix an issue with images taken from devices with high MP cameras. Reduce canvas size to 1000px if required.
kevinsuh pushed a commit to kevinsuh/labrador that referenced this pull request Oct 6, 2015
overwrote some aspects of the ngimgcrop library in order to account for
portrait uploads from iPhone.

specifically: went with un-minified version (which should be fine since
we precompile assets), only changed function “setNewImageSource”

in order to change height/width:
“elCanvas.prop('width',canvasDims[0]*1.5).prop('height',canvasDims[1]*1.
5).css({'margin-left': '0px', 'margin-top': '0px’});”

source: iblank/ngImgCrop#1
@iblank iblank merged commit e015e02 into iblank:master May 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants