How to make image splice into multiple pages?

Is it possible to achive the behavior of image spanning multiple pages? Similar to when chrome prints image it basically splice into multiple pages if the image doesn’t fit in current page.

Appreciate any suggestions on how to even implement own wasm extension for this.