0

I working on a project where i have one thumbnail of a scan document and then i whant to click on this thumbnail and show the whole big picture of it and the user should pan, zoom etc on it.

The best viewer should be something like a PDF viewer but for images and online in the browser.

The big picture of the document is in sizes like 2529x3516 pixels.

Some ideas?

Filburt
  • 17,626
  • 12
  • 64
  • 115
RickardP
  • 2,558
  • 7
  • 34
  • 42

1 Answers1

0

Create a modal window of the desired size and have its contents the img file. Give it overflow-auto so the user can pan around and view the whole image at 100%.

You could also use JavaScript to add + and - functionality, just adjust the width property and let the browser perform the scaling.

alex
  • 479,566
  • 201
  • 878
  • 984