Confirmed the bug is still present in Ubuntu (8.04) at at 17th September 2008.
The fix works though: "sudo pear install Image_Color"
Your errors:
1.>Warning: imagettftext() [function.imagettftext]: Could not find/open font in /usr/share/php/Image/Canvas/GD.php on line 1405
2.>Warning: Cannot modify header information - headers already sent by (output started at /var/www/map/graphicstest.php:1) in /usr/share/php/Image/Canvas.php on line 620
The first error means you haven't installed the fonts. Copy your truetype fonts to /usr/share/php/Image/Canvas/Fonts/
e.g verdana.ttf
The second error means you have probably left some space before your <?php start tag so it is sending the space before your image thereby modifying the headers.
---
In Ubuntu (8.04) I still get an error:
Fatal error: Call to undefined function: imageantialias() in
/homepages/33/d92408425/htdocs/PEAR/Image/Canvas/GD.php on line 182
Confirmed the bug is still present in Ubuntu (8.04) at at 17th September 2008.
The fix works though: "sudo pear install Image_Color"
Your errors: imagettftext] : Could not find/open font in /usr/share/ php/Image/ Canvas/ GD.php on line 1405 map/graphicstes t.php:1) in /usr/share/ php/Image/ Canvas. php on line 620
1.>Warning: imagettftext() [function.
2.>Warning: Cannot modify header information - headers already sent by (output started at /var/www/
The first error means you haven't installed the fonts. Copy your truetype fonts to /usr/share/ php/Image/ Canvas/ Fonts/
e.g verdana.ttf
The second error means you have probably left some space before your <?php start tag so it is sending the space before your image thereby modifying the headers.
---
In Ubuntu (8.04) I still get an error:
Fatal error: Call to undefined function: imageantialias() in 33/d92408425/ htdocs/ PEAR/Image/ Canvas/ GD.php on line 182
/homepages/
This is apparently a problem with Ubuntu build of GD. Installing GD from source will fix this. pear.php. net/bugs/ bug.php? id=8776
http://
I just did what the article says and removed ",'antialias' => 'native' " from the php code.