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