Neighbor.js

Neighbor.js resizes images using a nearest neighbor algorithm automatically.

$("#people img").neighbor();

Run it on particular images, or all images automatically.

Also use it to put a nearest-neighbor resized image on the background of an element:

$("#wallpaper").neighbor({ url: "people2.GIF", scale: "250%" });

There are two versions: