Page 1 of 1

thumbnail created but with very low image quality

Posted: Thu Jul 01, 2004 6:58 am
by sgalmeida
greetings

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);
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

Posted: Thu Jul 01, 2004 7:05 am
by redmonkey
A simple search of the forum turned up this....

viewtopic.php?t=22301&highlight=image+quality