Re: GD lib. image quality!

From: Date: Sun, 25 Aug 2002 15:18:36 +0000
Subject: Re: GD lib. image quality!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114055@lists.php.net to get a copy of this message
its not a gd 2 issue , i cant even get gd2 to compile with php 4.2.2, no idea why i've installed gd2 fine imageJpeg($thumbnail, $targetPath."/".$thumbNamePrefix."_thumb.jpg",100); that'll give it a quality of 100 , even still i notice its pretty bad , i need to use the bicubicresampled gd2 function just need it compiled correctly , how did you get gd2 to work ? "Arcadius A." <ahouans@sh.cvut.cz> wrote in message news:20020825111055.4910.qmail@pb1.pair.com... > 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 (#114055) next »