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 http://example.org/img/test.jpg and someone vists http://example.org/img/test_10x10.jpg 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 [https://gumroad.com/l/Cscd](htt ps://gumroad.com/l/Cscd)