Cheers. At the moment my script resizes the image on upload to a reasonable size, then it creates a thumbnail also using imagecopyresampled. So the script has to:
upload image, create one 400x400 pixel image and one 50x50 pixel image.
Obviously, I don't need the thumbnail to be best quality like the larger one. What is the least labour intensive method of shrinking an image for a thumbnail. I don't want to resize it with html each time the page loads for obvious reasons.