Introducing Wadda the Image Zoomer using Canvas

What is Wadda?

Wadda is the next generation image zooming technology utilizing Canvas technology to zoom into images. This allows user to have multiple levels of zoom without having multiple high definition images for each level of zoom.

Compatible Browser?

Every browser that supports canvas technology.

Usage

Its “really” easy! use the normal image tag with title=”url_of_hd_image” so for example:

<img src=”foo.jpg” id=”thumb” title=”foo_hd.jpg” />

where foo.jpg is thumbnail image and foo_hd.jpg is the high defination image.

On your required event create the wadda object, like this:

var wad = new Wadda(’thumb’, {
        lensSize: 150,
        xOff: 0,
        yOff: 0,
        fadeLens: true,
        zoom: 2
    });

where xOff is x-offset from mouse cursor and yOff is y-offset from mouse cursor, zoom is the initial zoom of image, lensRadius is the radius of lens and fadeLens enables/disables lens fade effect.

View Demo 1
View Demo 2

Want to try it yourself?

Download Files
PG

Author: MaXPert

Expert & Freelancer in PHP, MYSQL, Javascript, including many frameworks like codeigniter, cakephp, mootools, jquery, prototype js and a long list. Inventor of moousture and dymoonic. Writer of many frameworks and technologies famous ones include PhARoS and MiMViC. View his online portfolio.

Related Post

Delicious

40 Responses to “Introducing Wadda the Image Zoomer using Canvas”

  1. Interesting but simply doesn’t work on Firefox 3.6

  2. Really cool plugin, “the spy glass” should be the name

  3. Hi.. its looking nice but not work in IE7.

  4. That is an excellent implementation using the next generation HTML5 scripting language. Thanks for this.

  5. Sorry, I’m just not quite getting this to work on my page (can’t show b/c it’s internal only). But I have the two scripts included and then I have this:

    <script>
    var zoomr = null;

    listenOn(window, ‘load’, function(){
    var image = byId(‘zoomimage’);
    zoomr = new Wadda(image);
    });
    </script>

    And my image looks like this:

    I also tried including the full script you have from the Demo 2 and still can’t get it work. What am I missing?

  6. <img src=”/images/small/2.jpg” alt=”mine” title=”/images/large/2.jpg” border=”0″ id=”zoomimage”>

  7. There appears to be some sort of bug with the script somehow in how it interacts with certain CSS properties. I have my image wrapped inside a div and there are other elements on the page which are floated. It appears that it does work. However, only the top portion of my image is clickable and then the actual zoom feature appears beneath all of my content at the bottom of the page.

    You can try using this page: http://gallery.usgs.gov/photos/03_04_2009_t85Bsf1RQl_03_04_2009_0 and then applying the script there (it doesn’t include the script right now).

    If you can test this out that would be great unless you know where there might be a CSS conflict.

  8. wow..its a good zoom
    so smooth ^_^’
    thanks…

  9. its a good, but after i’m look moJoZoom…hmmm…;))
    nice nice

  10. This really an interesting example.

  11. Wow very cool plugins. Thanks. Need to try this one.

  12. I have been trying to get this to work with IE 6/7/8 using Explorer Canvas R3, but I can’t figure it out.
    Any chance of helping out where to add the code:
    G_vmlCanvasManager.initElement( );
    that they describe in http://code.google.com/p/explorercanvas/wiki/Instructions

  13. thx for sharing this, great work…

Leave a Reply