John Piasetzki's Blog

My Thoughts

PHP Auto Image Resizer

I wrote a small script that automatic resizes images. A simple .htaccess and thumbnails.php that will automatic create resized images. If an image exists at and someone vists it will copy the image and resize it to 10 x 10 serve it and save a copy in the folder.

It’s smart too and checks whether the image exists. If the image exists it just serves it up. Otherwise if the base images exists it creates it or returns 404.

If you want it you can get it via gumroad at [](htt ps://