These are chat archives for openseadragon/openseadragon
When using a deep zoom tile source, the
tile-loaded event will contains an
image property that is the loaded image. When using an image tile source, the
tile-loaded event does not. Why is that? Diving into the source code I can see we delete the
this._image reference for cleanup purposes. However, if you want to modify the image in
tile-loaded it's more performant to use the generated image directly instead of generating
ImageData from the provided canvas context.
Is there a performant way to modify the image for tiles coming from image tile source?
context2D is present on a tile, the cache isn't used, when
context2D is undefined, tiles are properly cached. I'm currently using the
tile-loaded event to draw a manipulated image on a new canvas. I then take the canvas context and assign it to
e.tile.context2D. This works, but it busts the cache since tiles with a
context2D present does not get cached.
Is it possible to modify a tile before being drawn, without busting the cache?