matiasgali / guillotine

jQuery plugin to crop images within an area (fully responsive), allowing to drag (touch support), zoom and rotate.
http://guillotine.js.org
326 stars 100 forks source link

Custom zoom range #60

Open ldim87 opened 7 years ago

ldim87 commented 7 years ago

Check it out if you want to use a slider for zooming.

Here is simple input type='range'. Min, max and value are set in callback, so the important one is only a step. You can pass max zooming value in options (maxScale).

Rotating and zooming buttons affect the slider also.

omarqe commented 7 years ago

Adding this.op.maxScale = typeof this.op.maxScale === 'undefined' ? 2 : this.op.maxScale; on Line 106 in jquery.guillotine.js makes it better if we don't want to initialise guillotine with maxScale parameter.