Automatic Image Resizer | JavaScriptSource

Automatic Image Resizer

Cat Arriola Sep 7, 2005


This script will resize a group of images to a preset maximum width. Useful for regulating picture size, especially on sites where images are posted at random by multiple users.

photo 1 photo 2 photo 3
Live demo:


Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: automaticImageResizer.js


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response


I click on the 'make width 80 pixels' button, but nothing happens. i do have js enabled. tried firefox, chrome and ie9

Sprite Jul 31, 2015

Is it just me or is the demo broken? (Chrome on Mac).

Noel da Costa May 24, 2015