Skip to content

Saving cropped image #10

@derryspann

Description

@derryspann

Docs are missing directions for saving the cropped region. I would assume doing the following during the callback for any event listener but I'm not sure.

crop.on('end', function (region) { 
var canvas = document.getElementById('canvas');
var ctx = canvass.getContext('2d');
var image = document.querySelector('#edit-image img');

ctxs.drawImage(images, region.x, region.y, region.width, region.height);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions