Open Source Resources for Web Application Developers

Shopify - Online Store Builder
Follow Us on Social Sites
Subscribe RSS Subscribe Newsletter Like us on Facebook Follow us on Twitter Follow us on Google+
  • Home
  • News
  • Plugins
  • Design
  • Others
  • Books
  • About
14 Mar

Smart Image Resizer Auto-Resizes Images in PHP

  • CC License, Tools
  • Leave a Comment

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.

image-resizer.png

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

Share
Tweet
Sponsors
subscribe to our newsletter - weekly free resouces for web developers
follow us on social sites - rss, facebook, google+, Twitter
Subscribe RSS Like us on Facebook Follow us on Twitter Follow us on Google+
Related Resources
Magic Toolbox – Javascript and Flash Image Zoom Tools

Magic Toolbox – Javascript and Flash Image Zoom Tools

Professional and Free Patterns on Milleseicentopercento

Professional and Free Patterns on Milleseicentopercento

Fullsize jQuery Plugin & A New <IMG> Attribute Proposal

Fullsize jQuery Plugin & A New <IMG> Attribute Proposal

Vector Magic Converts Your Raster Image to Vector Image

Vector Magic Converts Your Raster Image to Vector Image

Free Dynamic Javascript Slideshow Under 5KB

Free Dynamic Javascript Slideshow Under 5KB

How to Create CSS3 Rounded Image with jQuery

How to Create CSS3 Rounded Image with jQuery

Comments
  • http://matrax.net MaTraX

    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

  • http://www.JustinGermain.com Justin

    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

    Gladly.
    http://phpthumb.sourceforge.net/

  • qqrq

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

  • http://logopond.com David

    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.

  • http://rafyta.com Rafyta

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

  • http://www.pressredmedia.com/rlx19/test/resize/image.php/Tsukiko%20Amano.jpg?width=300&height=100&image=/Tsukiko%20Amano.jpg Shadman Jamil

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

Open Source Resources for You

What we need is a list of the top quality resources, so that we can spend more time on our web development. WebAppers only picks the top quality web development resources for you.

© Copyright 2012 WebAppers | About | Archives | Privacy Policy | Advertise | Contact

Sponsors
Advertise Here
Search
By Keywords
30 Days / All Time
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • Professional Business Cards Made By Designers
  • Best Free Chrome Extensions for Web Developers
  • All of the Best Free WordPress Themes You Need
  • How to Create a Web App Admin User Interface
  • Nice List of Open Source Fish Eye Menu
  • Best Web Admin Templates
  • 25 Useful Blogs for Web Design & Development
  • Simple Javascript Progress Bar with CSS
  • 10 Useful & Quality Design Resources
  • Free Web Application Icons
  • How to Create High-Performance Code
  • Easy to Use, Drag & Drop Bootstrap Interface Builder
  • The Most Well-Made, Free & Open Source Fonts
  • Tiny Responsive jQuery Slider without Fancy Effects
  • How to Create Realtime Multi-player Games in HTML5
  • Create an Amazon-like Navigation Menu with jQuery
  • A True Responsive jQuery Lightbox Plugin for Free
  • How to Make FullScreen Page Transitions with CSS
  • How to Use Web Workers for Image Manipulation
  • Pretty Neat jQuery Mobile Theme Based on Flat UI
Sponsors
Plugins
  • Advertisement15
  • Calendar47
  • Capture19
  • Charts55
  • Chat22
  • Demo Tour16
  • Gallery121
  • Maps30
  • Menu86
  • Polls9
  • Popup49
  • Tooltips42
  • Upload33
  • Video18
Desgin
  • Brushes11
  • Buttons25
  • Color Schemes24
  • Fonts47
  • Forms112
  • Icons108
  • Patterns24
  • PS Tutorials15
  • Stock Photos21
  • Tables25
Others
  • Announcement103
  • Best Collections6
  • Code54
  • eCommerce24
  • Framework214
  • Hosting13
  • Information238
  • Inspiration32
  • Legal Documents10
  • Reviews8
  • Security13
  • Social28
  • Sound16
  • Stats39
  • Tools293
  • Webmail14
Licesnes
  • BSD License67
  • CC License122
  • GPL License224
  • LGPL License40
  • License Free738
  • MIT License408
Sponsors
Advertise Here
Partners
NetDNA