I'm working on a small image-db which creates a thumbnail when uploading an image and stores it in the DB.
But the quality of the thumbs is very low - I'm using the following code to generate the thumbnail:
$temp=imagecreate($new_width,$new_height);
imagecopyresized($temp,$im,0,0,0,0,$new_width,$new_height,$im_width,$im_height);
imagejpeg($temp,"temp.jpg");
Anybody got an idee how to improve the quality of the thumbs?
regards
Tommy