出现这个问题,首先看一下phpinfo(),到底有没有装freetype,gd等,没装的话,必然会出现这个问题,可我是把gd装了几次了,每在phpinfo里看,发现什么都支持了,可是运行还是出现Call to undefined function imageantialias,在网上找了好半天,才发现在一句,
Note : This function is only available if PHP is compiled with the bundled version of the GD library.
还找到下而这一段,
Now a package is compiled is set within the files contained in the debian directory of a package. Rules for configuring the compile process can be found in debian/rules. In this file there is a line that reads --with-gd=shared,/usr --enable-gd-native-ttf / . This links to the Ubuntu distributed version of LibGD as a shared library. It is part of the autoconf script that customises the compilation of PHP. I replaced this line with --with-gd=shared --enable-gd-native-ttf / . This causes the compilation process to use the bundled version of GD and make a shared library.
什么意思呢,自己看吧,反正是gd必须编译成.so文件,在php.ini中加载进来才能用imageantialias,编译的选项上而有的,