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.


I tried your script all I got was the jpeg code. What did I do wrong?
Thanks, I finally the script working.
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!