I would like to do the following trick in a browser:
Create three image files of different size (small, medium, large) from one picture.
First, display the small image in a browser.
When a user zooms in the small image
replace it with the medium one.
Now the user can scroll it within the window up and down, left and right.
When a user zooms out the small image replace it with the small one, etc.
A quick google search turns up:
Several of these libraries appear to do what you want.
Would this work for you?
This might be for image data that is much larger than you are interested in.
©2020 All rights reserved.