I am currently loading a rather large image (15000x10000) into a konva canvas. The canvas is draggable in another canvas. The image is not drawn if parts of it leave the view of the browser. The main problem is that the dragging is not smooth when zoomed out of the canvas just a little bit and zooming out of and into the image is quite stuttery.
The image gets loaded from the file system, turned into a Blob, an object url is created like window.URL.createObjectURL(...)
, passed to an HTMLImageElement and then passed to a Konva.Image
.
Is there a way to speed up the drawing perfromance of the image when dragging/zooming or is the only way to make it faster to downsample the original image?