Croppie icon indicating copy to clipboard operation
Croppie copied to clipboard

Crop image stretched

Open giuliastully opened this issue 2 years ago • 0 comments

After the crop the image is stretched, it does not maintain the aspect ratio.

I use this:

$image_crop = $("#cover_image").croppie({
        enableExif: true,
        enableOrientation: true,
        viewport: {
            width: 360,
            height: 270,
            type: "square" //circle
        },

        boundary: {
            width: 360,
            height: 270
        }

    });


    $image_crop
            .croppie("result", {
                type: "canvas",
                size: 'original',
                circle: 'false',
            })

giuliastully avatar Apr 21 '22 21:04 giuliastully