I'm using the croppie plugin to resize my images. this is my code:
$uploadCropCustom = $('#upload-avatar').croppie({
viewport: {
width: 76,
height: 76,
type: 'circle'
},
boundary: {
width: 76,
height: 76
},
enableExif: true
});
$uploadCropCustom.croppie('result', {
type: 'canvas',
size: 'viewport'
}).then(function (resp) {...http request to save the image}
I when I run it, it get this error:
Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-232.792) is negative.