idwall / idcrop

Polygonal image cropping plugin.
MIT License
18 stars 9 forks source link

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

Open felquis opened 6 years ago

felquis commented 6 years ago

I'd like to use this

https://github.com/idwall/idcrop/blob/0aa6006e7f932e64c7a0afbcf2e1628366a38b07/lib/js/idcrop/IdCrop.js#L159-L164

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.