Foliotek / Croppie

A Javascript Image Cropper
http://foliotek.github.io/Croppie
MIT License
2.56k stars 885 forks source link

Fail on get result from circle viewport #731

Open marcelleza8 opened 4 years ago

marcelleza8 commented 4 years ago

Expected Behavior

I'm trying to get an Ellipse result

Actual Behavior

Receiving an circle result

Steps to Reproduce the Problem

` var croppie = new Croppie(imgCrop, { viewport: { width: 150, height: 200, type: 'circle' }, boundary: { width: 300, height: 300 }, showZoomer: false, enableResize: true, enableOrientation: true, mouseWheelZoom: 'ctrl' })

$('.confirmar').on('click', function () { croppie.result({ type: 'canvas', size: 'viewport' }).then(function (img) { $('img').attr('src', img).appendTo('.resultado') }) })`

Image to crop

image

Result

image

Specifications

Gratitude