Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript for zooming and panning an image

I have a requirement in the project I am working on for a piece of JavaScript which will allow the user to pan over and zoom in and out of a large image.

Unfortunately, my experience with JavaScript is limited.

Does anybody know of a free script out there which would satisfy my requirements?

like image 963
Barry Avatar asked Mar 09 '09 14:03

Barry


2 Answers

There is a jquery ZoomImage plug-in to my opinion which would be good use for this case..Examples for code are here or here.

There is one that also uses a zoom toolbar next to the image

like image 73
TStamper Avatar answered Oct 02 '22 14:10

TStamper


I don't know if you are able to make use of any libraries like jQuery or Prototype/Scriptaculous, which may increase your available options.

That said, this sample from Todd Ditchendorf is really cool and has no external dependencies:

http://ditchnet.org/dhtmlgallery/izoom/

like image 32
Jarret Hardie Avatar answered Oct 02 '22 16:10

Jarret Hardie