fengyuanchen / cropper

⚠️ [Deprecated] No longer maintained, please use https://github.com/fengyuanchen/jquery-cropper
MIT License
7.75k stars 1.74k forks source link

how to change the initail parameter when I need #869

Closed seehtml closed 7 years ago

seehtml commented 7 years ago

$('#btn1').click(function () { $('#up-img-show').cropper({ aspectRatio: '1', autoCropArea:0.8, preview: '.up-pre-after', }); })

$('#btn2').click(function () { $('#up-img-show').cropper({ aspectRatio: '2', autoCropArea:0.8, preview: '.up-pre-after', }); })

// it can not be changed