thumbnail created but with very low image quality
Posted: Thu Jul 01, 2004 6:58 am
greetings
I'm using a script to create a thumbnail of a JPEG image and show on my page. Here is the script
but the thumbnail that is created/generated has very low image quality
Someone as any ideas about this? What I must do to make the thumbnail to have the same resolution as the source image so it have the max quality possible?
TIA
Almeida
I'm using a script to create a thumbnail of a JPEG image and show on my page. Here is the script
Code: Select all
$abc = imagecreatefromjpeg($_GETї'ficheiro']);
$def = imagecreate(174, 102);
imagecopyresized($def, $abc, 0, 0, 50, 50, 174, 102, 174, 102);
imagejpeg($def);
imagedestroy($abc);
imagedestroy($def);Someone as any ideas about this? What I must do to make the thumbnail to have the same resolution as the source image so it have the max quality possible?
TIA
Almeida