1. Home
  2. Computing & Technology
  3. PHP / MySQL
Angela Bradley
Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

Creating Thumbnails with GD

Wednesday May 24, 2006
It is very common for image galleries (and a variety of other programs) to create a small version of a graphic (a thumbnail) to show the user a preview of what the full graphic looks like. We can accomplish this by using the GD Library with PHP. We can resize the image to a more manageable size using code instead of graphics programs. We could also combine this with some of the other GD basics we have discussed in the past, to add text or other things to our original photo.
Comments
December 7, 2006 at 8:04 pm
(1) Thomas says:

I tried your script all I got was the jpeg code. What did I do wrong?

December 9, 2006 at 9:47 pm
(2) Thomas says:

Thanks, I finally the script working.

October 26, 2008 at 8:09 pm
(3) Kaide Rukawa says:

is there a way for me to display more than 1 picture using the code you provided on this site? what I’m trying to do is when someone uploaded a picture, it will automatically generates or save a thumbnail file for that picture.

thanks!

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore PHP / MySQL
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.