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

Pass canvas as source #10

Open
JanisE opened this issue Aug 9, 2019 · 2 comments
Open

Pass canvas as source #10

JanisE opened this issue Aug 9, 2019 · 2 comments

Comments

@JanisE
Copy link

JanisE commented Aug 9, 2019

Is it possible to pass a canvas element to be downscaled?

@JanisE
Copy link
Author

JanisE commented Aug 9, 2019

I modified detectSourceType to return File also if source instanceof Blob, and then I could pass the result of canvas.toBlob into downsample.

@bslinger
Copy link

@JanisE , any chance you could do a pull request for that change? I have the same requirement, would love to see it merged.

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