You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
im using the image croper in a $uibModal template like this:
<image-cropper image-url=" promises[0].$$state.value + "
width="options.width"
height="options.height"
show-controls="true"
"it-on-init="true"
center-on-init="true"
crop-callback="updateResultLogo"
check-cross-origin="false"
zoom-step="options.zoom+""
action-labels="myButtonLabelsObject"></image-cropper>
i use the width & height dynamically bec. its possible to upload such small pictures, that a 3000*300 output div looks bad. Is it possible to change the zoom calculation depends on image size? Or to generate the zoom calculation with a separate function?
The text was updated successfully, but these errors were encountered:
Seems like zoom step gets added on 1 instead of 0. Change the value and it'll work this.zoomInFactor = 1 + parseFloat(this.options.zoomStep); // change 1 to 0 this.zoomOutFactor = 1 / this.zoomInFactor; // change 1 to 0.1
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
im using the image croper in a $uibModal template like this:
<image-cropper image-url=" promises[0].$$state.value + "
width="options.width"
height="options.height"
show-controls="true"
"it-on-init="true"
center-on-init="true"
crop-callback="updateResultLogo"
check-cross-origin="false"
zoom-step="options.zoom+""
action-labels="myButtonLabelsObject"></image-cropper>
i use the width & height dynamically bec. its possible to upload such small pictures, that a 3000*300 output div looks bad. Is it possible to change the zoom calculation depends on image size? Or to generate the zoom calculation with a separate function?
The text was updated successfully, but these errors were encountered: