Zoom images in an HTML file to user-defined levels
- pic.png - test image that is zoomed
- image-zoom.js - Javascript file that scales any provided image file to twice (pic.png provided as a sample)
- index.html - HTML file which renders the original and scaled image
- Put the three aforementioned files in a single directory
- Open index.html in a Javascript supported browser to view scaled version of the sample pic.png
- Put image-zoom.js and index.html in a single directory
- In the same directory, put the image file to be scaled
- Rename the image file to "pic." ( being the extension of the image file)
- Open index.html in a Javascript supported browser to view scaled version of the custom pic.png