| > |
PHPFAQ - When using GD/PHP to create thumbnails using imagecopyresized the thumbnail quality is not very good. |
[Bookmark it] |
|
|
| PHPFAQ - When using GD/PHP to create thumbnails using imagecopyresized the thumbnail quality is not very good. |
|
Question : When using GD/PHP to create thumbnails using imagecopyresized the thumbnail quality is not very good.Answer :jernberg@fairytale.se wrote an additional function for PHP called imagecopyresizedbicubic.
This requires some editing of the PHP sourcecode. We have created a file available for download
that modifiys the PHP source code as described in the notes section @
http://www.php.net/manual/en/function.imagecopyresized.php
This only works for PHP-4.0.5 (Linux Source Only)
It may work with PHP-4.0.6 but it fails with GD2 + PHP-4.0.6 we will do more testing soon to see if we can create a new patch for this combination.
Extract the source then from the source directory :-
wget http://www.alt-php-faq.org/downloads/patch
patch -p0
You need to recompile PHP after the extraction of our patch file.
Look for the changes under the GD section on phpinfo(); output.
We did not write this, all praise goes to:-
jernberg@fairytale.se for the addition of this code and
Colin_Witt@baylor.edu for the additional notes
|
|
|
|
|
|
|