thumbnail created but with very low image quality

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sgalmeida
Forum Newbie
Posts: 4
Joined: Tue Dec 23, 2003 11:24 am

thumbnail created but with very low image quality

Post 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
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

A simple search of the forum turned up this....

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