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.
I'd like to use this
idcrop/lib/js/idcrop/IdCrop.js
Lines 159 to 164 in 0aa6006
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.