note 12338 deleted from function.imagecopyresized by aidan
| From: | aidan@php.net | Date: | Mon, 04 Oct 2004 09:41:23 +0000 |
| Subject: | note 12338 deleted from function.imagecopyresized by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77934@lists.php.net to get a copy of this message | ||
Note Submitter: Colin_Witt at baylor dot edu
----
One note on getting the ImageCopyResizedBicubic to work. Just adding the code block to gd.c
won't do it. You have to do two other things as well:
In the first 150 or so lines of gd.c, you will find a section that starts like this:
function_entry gd_functions[]
Find the line that starts PHP_FE(imagecopyresized , copy this line, and paste a new copy below the
original. Change the "imagecopyresized" to "imagecopyresizedbicubic" in the new
copy.
Also, you will need to edit php_gd.h as follows:
Find the line that says:
PHP_FUNCTION(imagecopyresized);
(it was line 87 for me)
and add a line below it that says:
PHP_FUNCTION(imagecopyresizedbicubic);
Once you've made these changes, recompile and reinstall php, and you should be good to go.
Scaling works much better with this function.