Open DanielBailey-web opened 3 years ago
I guess the question should really be: Should these be input options to the "done" function, or should the ref to the canvas be able to be accessed. I see this way working fine (and like I mentioned it seems to be a non-breaking change), but other utilities like react-cropper just give people access to the canvas ref which certainly has more utility.
It would be nice to be able to declare a return mime-type for the image instead of just using the mime-type from the original image.
locally I am currently doing something like this (modified from the example)
And then in Canvas.js using extended options.
I can submit a pull request if this is something you would be interested in adding to the library. I believe the way I did it would implement it in a non-breaking way, given the OR operations to provide defaults.