Investigate OpenSeadragon

https://openseadragon.github.io/

  • Make the main images just a thumbnail, store the big image somewhere else.
  • When clicking on an image, use OpenSeadragon to "zoom" to the big image