/ best free open source web resources /

Graphic Resources

Smart Image Resizer Auto-Resizes Images in PHP

Posted · Category: CC License, Tools

Smart Image Resizer allows us to resize and crop any image on our websites without touching the actual image or writing any code. We upload each image (JPEGs, GIFs, and PNGs) once at a high enough resolution and can then reuse it at any size we want, anywhere we want. It doesn’t matter if the images are in a post, on a page, or in a template file, it just works. All of the magic is done through the query string part of the URL in the src attribute of the img tag.


Requirements: PHP and GD
Demo: http://shiftingpixel.com/2008/03/03/smart-image-resizer/
License: Creative Commons 3.0 License

  • Great and lightweght script. Very easy to use.

  • qqrq

    Simple and useful.

  • Pingback: php code and scripts » Blog Archive » Smart Image Resizer Auto-Resizes Images in PHP()

  • chris

    uhh, phpthumb? i’ve been doing this since like 2003

  • I’m guessing this will affect load time though? The link seems to be down, but is it just loading the high res image at a diff size?

  • qqrq

    chris => So why don’t you share your code with us?
    Justin => All the script does is loading resized image. It will be slower, than an image load, but only the first time (when you don’t have the cache file). After that it all goes almost like loading ordinary JPEG or GIF.

  • chris
  • qqrq

    Ah yes, I’ve used that one too. Good one!

  • phpthumb is nice if you have a small site but if you have a site say for example logopond, you can use it as is described because the cost to the server resources is HUGE. This should be wraped in a class or function at least and there should be a check before hand if the image exist or not. There are a couple checks in there but its not at the parent level.

  • I couldn’t get it to work, for some reason.
    I tried phpthumb and it worked fine and easy for me.

  • just width is working but when i edit or set hegiht it not works :P dependent full size on image width

Supported By


Web Browsers Icon Set
Food Icon Set
Flat Icon Set

Flat Icon Set

100 icons