Skip to content

Commit 857b8f3

Browse files
committed
Add initialZoom value
initialZoom allows you to set an integer on how much to zoom in the photo after upload.
1 parent 9981774 commit 857b8f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

croppic.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
//styles
2424
imgEyecandy:true,
2525
imgEyecandyOpacity:0.2,
26+
initialZoom:40,
2627
zoomFactor:10,
2728
rotateFactor:5,
2829
doubleZoomControls:true,
@@ -365,7 +366,7 @@
365366
initialScaleImg:function(){
366367
var that = this;
367368
that.zoom(-that.imgInitW);
368-
that.zoom(40);
369+
that.zoom(that.options.initialZoom);
369370

370371
// Adding mousewheel zoom capabilities
371372
if (that.options.enableMousescroll){

0 commit comments

Comments
 (0)