Skip to content

Ability to give a base64 or URL to enable the image cropping #21

@felquis

Description

@felquis

I'd like to use this

if (!c.toolbarArea || !this.config.allowUpload) {
var src = helpers.getBgSource(c.displayArea);
helpers.dataURIFromSrc(src).then(function(base64) {
self.startCroppingArea(base64, self);
});
}

But I want to skip the lines 160, I want to pass a property that can be a URL or a base64 and it will enable the cropping features for that image if that is valid.

You can use image onload event for both the URL and the bae64 image.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions