GD lib. image quality!

From: Date: Sun, 25 Aug 2002 11:10:51 +0000
Subject: GD lib. image quality!
Groups: php.general 
Request: Send a blank email to php-general+get-114040@lists.php.net to get a copy of this message
Hello! I wrote a little script for generation thumbnails of larger images.... <code> $origImage = imageCreateFromJpeg($sourcePath."/".$currentImageName); $thumbnail = imageCreate($thumbWidth,$thumbHeight);// create empty image imageCopyResized($thumbnail,$origImage,0,0,0,0,$thumbWidth,$thumbHeight,imag esX($origImage),imagesY($origImage)); imageJpeg($thumbnail, $targetPath."/".$thumbNamePrefix."_thumb.jpg"); // Store it imageDestroy($thumbnail); // cleanup echo "<br>Image ".$targetPath."/".$thumbNamePrefix."_thumb.jpg"." created successfully!"; </code> then, I've noticed that the quality of the thumbnails created is very bad! my "phpinfo()" page shows "2.0 or higher" as GD version So, I'm wondering whether I'm doing something wrong in my code or whether there exist a better library to use with PHP ... a library able to generate good quality JPG files... Thanks in advance. Arcadius.

« previous php.general (#114040) next »