Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

zoom ignore setup and one step is like 10 #47

Open
Weestdudochnicht opened this issue Jun 16, 2016 · 3 comments
Open

zoom ignore setup and one step is like 10 #47

Weestdudochnicht opened this issue Jun 16, 2016 · 3 comments

Comments

@Weestdudochnicht
Copy link

Weestdudochnicht commented Jun 16, 2016

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?

@peterrus1
Copy link

I am not really sure what you are getting at, but I may be experiencing the same.

Any zoom-step value below 1 does not seem to do anything, and entering 1 zooms in way too much per step,

Maybe the documentation could be updated with the correct values for zoom-step, I would do a PR if I knew what the values were.

Any comments from the developer on this?

@peterrus1
Copy link

peterrus1 commented Jan 6, 2017

Might be related to #25

@sojoonsup
Copy link

sojoonsup commented Mar 5, 2017

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants