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." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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.
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to