downscale icon indicating copy to clipboard operation
downscale copied to clipboard

Pass canvas as source

Open JanisE opened this issue 6 years ago • 2 comments

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

JanisE avatar Aug 09 '19 10:08 JanisE

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

JanisE avatar Aug 09 '19 11:08 JanisE

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

bslinger avatar Aug 21 '19 02:08 bslinger