andyvr/picEdit

Request: configure image format

carprez opened this issue · 0 comments

Hi!

I was wondering if it is possible to add an additional setting in order to allow configuring image format and image quality.

According https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL, toDataURL function accepts two arguments: type and encoderOptions. Currently images are converted to 'png', but I'd like to keep jpg format.

Thanks