Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting mimeType and imageQuality for takeSnapshot #33

Closed
wottpal opened this issue Nov 24, 2018 · 3 comments
Closed

Allow setting mimeType and imageQuality for takeSnapshot #33

wottpal opened this issue Nov 24, 2018 · 3 comments

Comments

@wottpal
Copy link

wottpal commented Nov 24, 2018

It would be super nice being able to set the quality of the taken screenshot (and it's mime-type).

Direct-Link to Function:

public takeSnapshot(): void {

Documentation of toDataURL: https://developer.mozilla.org/de/docs/Web/API/HTMLCanvasElement/toDataURL

@basst314
Copy link
Owner

basst314 commented Dec 14, 2018

Hi @wottpal,

Thanks for bringing this up. Sounds like a good extension to me.
I have a couple of things on my list now and I will work on them as soon as possible.
Probably during the holidays.

Thanks

@wottpal
Copy link
Author

wottpal commented Dec 18, 2018

That would be 🔥 Thanks!

@basst314
Copy link
Owner

Hi @wottpal,

I'm happy to let you know that I implemented this feature. It's included in version 0.2.1.

Check out the new parameters imageType and imageQuality.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants