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

This is apparently a problem with Ubuntu build of GD. Installing GD from source 
will fix this. 
http://pear.php.net/bugs/bug.php?id=8776

I just did what the article says and removed ",'antialias' => 'native' "
from the php code.

-- 
Missing file referred to in /usr/share/php/Image/Canvas/Color.php
https://bugs.launchpad.net/bugs/52726
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to