Skip to content

rebind the viewport and boundary on button click #795

@ColdstarJoey

Description

@ColdstarJoey

Hi there,

is there a way to rebind the viewport and boundary size and shape via a button click?

I have tried the following but no luck:

reader.onload = function (e) {
croppie.bind({
url: e.target.result,
viewport: {
width: 350,
height: 180,
type: 'rectangle'
},
});
$('#cropModal').modal('show');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions