Web image zooming tool

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
fgasking
Baa!
Baa!
Posts: 25
Joined: Thu Aug 21, 2003 8:01 pm 0
Contact:

Web image zooming tool

Post by fgasking »

Apart from Zoomify and Magic Zoom, can anyone recommend any web image zooming tools/code which would produce something like this?
http://www.figleaves.com/uk/productzoom ... %3A28%3A30

This is a Zoomify example, but ideally i'm looking for a similiar solution done purely with Javascript. Any suggestions?

Thanks in advance!
User avatar
moosedude
Baaaaaaa!
Baaaaaaa!
Posts: 6209
Joined: Fri Nov 19, 2004 1:19 pm 0
Location: Craggy Island
Contact:

Re: Web image zooming tool

Post by moosedude »

you might be able to cheat with javascript, if you create a really high resolution image and create a html tag;

<img href="girlie.jpg" id="image" width="100" height="100"/>

and then use some javascript to alter the width/height of the image.

Code: Select all


function zoom()
{
var t = document.getElementById('image');
t.style.width = 300;
t.style.height = 300;
}

but that sucks as a solution, but from a google search I think other javascript solutions seem to do variations on that theme.

I don't think you're ever going to get anything as complicated or as complete as the flash solution shown on figleaves from javascript.

You can see from playing with figleaves that if you zoom in really close and then stop the resolution suddenly improves dynamically, and javascript is not capable of working with images at the pixel level to provide that.

01000101 01000100 01000111 01000101

http://www.redbubble.com/people/fotofill/ buy my photos!
fgasking
Baa!
Baa!
Posts: 25
Joined: Thu Aug 21, 2003 8:01 pm 0
Contact:

Re: Web image zooming tool

Post by fgasking »

Cheers Moosedude, I had a feeling that it might be difficult to get away from Flash, but it seems like Zoomify is the way forward for the project :)
User avatar
Stephen
Baaaa!
Baaaa!
Posts: 916
Joined: Mon Apr 22, 2002 4:39 pm 0
Location: Akron, Oh USA

Re: Web image zooming tool

Post by Stephen »

fgasking wrote:Apart from Zoomify and Magic Zoom, can anyone recommend any web image zooming tools/code which would produce something like this?
http://www.figleaves.com/uk/productzoom ... %3A28%3A30

This is a Zoomify example, but ideally i'm looking for a similiar solution done purely with Javascript. Any suggestions?

Thanks in advance!
Very nice breasts! :oops:

Stephen Anderson
User avatar
moosedude
Baaaaaaa!
Baaaaaaa!
Posts: 6209
Joined: Fri Nov 19, 2004 1:19 pm 0
Location: Craggy Island
Contact:

Re: Web image zooming tool

Post by moosedude »

My apologise for my first post, but I recently & accidently stumbled upon something I didn't know java could do!!

apparently javascript/html allows for the creation of a "canvas" element, which allows image/drawing manipulation..

http://developer.mozilla.org/en/docs/Canvas_tutorial

http://developer.mozilla.org/en/docs/Ca ... ing_images

I think using this you could come up with a pretty good image zoom utility.

I really am shocked and stunned that this actually exists!!

01000101 01000100 01000111 01000101

http://www.redbubble.com/people/fotofill/ buy my photos!
Post Reply