-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
I'd like to use this
idcrop/lib/js/idcrop/IdCrop.js
Lines 159 to 164 in 0aa6006
| 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.
Reactions are currently unavailable