You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
It would a good option to export the crop as png files to preserve transparency. We can add this as an option which defaults to jpg but we can override it.
I see the code to export the crop is this:
var base64 = canvas.toDataURL('image/jpeg');
this.events.triggerHandler('Cropped', base64);
We can just change it to
var base64 = canvas.toDataURL(this.options.format); //default is still jpeg for BC
this.events.triggerHandler('Cropped', base64);
What do you think? Should I submit a PR?
Thanks!
San.
The text was updated successfully, but these errors were encountered:
Hi,
It would a good option to export the crop as png files to preserve transparency. We can add this as an option which defaults to jpg but we can override it.
I see the code to export the crop is this:
We can just change it to
What do you think? Should I submit a PR?
Thanks!
San.
The text was updated successfully, but these errors were encountered: