-
Notifications
You must be signed in to change notification settings - Fork 164
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
Canvas support? #85
Comments
Howdy, just checking on this. Canvas support would be an awesome feature! |
@s-yadav, I just wanted to check in and get your thoughts on this issue. Thanks! |
Hey, @s4m0r4m4. Sorry missed replying earlier on this. Currently, it does not support canvas. I would like to understand the use case for HTMLCanvasElement. Ideally, you can get the data URL from canvas |
Hello! My use case is that I have very large images (~200-400MB) that are sent to my app via websocket. I can't afford to render these in the main thread (it locks up the UI for too long!), so I am using a webworker to render that image in an offscreen canvas, along with rendering other items in the canvas. To use your canvas.toDataURL() approach, I would have to run that in the worker and send the data URL back to the main thread and then pass it to iv-viewer. That data URL will be quite large, so there will be a performance hit. It's probably not a good use case for this library, but I figured I would check to see perhaps there was a solution I was missing. Thanks for your reponse! |
Hello! I think the answer is "no", but I wanted to check - does iv-viewer support zoom/pan on canvas images? For instance, if I have an HTMLCanvasElement, can I pass that to iv-viewer rather than an html image element?
Great library, thank you!
The text was updated successfully, but these errors were encountered: