Toon posts:

[php/TTF] TTF wel geinstalleerd werkt niet *

Pagina: 1
Acties:

Verwijderd

Topicstarter
ik heb ff om te testen deze code van php.net geplukt,
PHP:
1
2
3
4
5
6
7
8
9
10
<?
Header ("Content-type: image/gif");
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf",
              "Testing... Omega: &amp;#937;");
ImageGif ($im);
ImageDestroy ($im);
?>

maar ik krijg deze error:
ImageTtfText: No TTF support in this PHP build in /home...
ImageGif: No GIF support in this PHP build in /home....
terwijler in phpinfo() staat:
--with-gd' '--with-gdbm' '--with-gettext' '--with-jpeg-'--''--with-png' '--with-ttf'

hoe kan dit? (het gaat dus om die TTF support en niet om de GIF support)

Verwijderd

Topicstarter
sorry,

topic titel vergeten |:(

  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 12-09 21:31

Janoz

Moderator Devschuur®

!litemod

Probeer in eerste instantie ff de 'no gif support' weg te werken.

Het kan best zijn dat het met jpeg of png ineens wel werkt.

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


Verwijderd

Op vrijdag 08 februari 2002 16:53 schreef ludohelder het volgende:
ik heb ff om te testen deze code van php.net geplukt,
PHP:
1
2
3
4
5
6
7
8
9
10
<?
Header ("Content-type: image/gif");
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf",
              "Testing... Omega: &amp;amp;#937;");
ImageGif ($im);
ImageDestroy ($im);
?>

maar ik krijg deze error:
[..]

terwijler in phpinfo() staat:
--with-gd' '--with-gdbm' '--with-gettext' '--with-jpeg-'--''--with-png' '--with-ttf'

hoe kan dit? (het gaat dus om die TTF support en niet om de GIF support)
GD zal om de een of andere rede wel niet goed geconfigureert zijn. Tenminste, als ik die erros zo mag geloven.

  • TheRookie
  • Registratie: December 2001
  • Niet online

TheRookie

Nu met R1200RT

van de imagettftext manual page
This function requires both the GD library and the FreeType library.
heb je idd --with-freetype in je phpinfo staan ?

Verwijderd

Topicstarter
Op vrijdag 08 februari 2002 19:31 schreef TheRookie het volgende:
van de imagettftext manual page
[..]

heb je idd --with-freetype in je phpinfo staan ?
nee, er staat geen --with-freetype,
dus die moet eerst geinstalled worden?

  • TheRookie
  • Registratie: December 2001
  • Niet online

TheRookie

Nu met R1200RT

Op zondag 10 februari 2002 13:48 schreef ludohelder het volgende:
[..]
nee, er staat geen --with-freetype,
dus die moet eerst geinstalled worden?
zoals ik al zei:
Op vrijdag 08 februari 2002 19:31 schreef TheRookie het volgende:
van de imagettftext manual page
[..]
heb je idd --with-freetype in je phpinfo staan ?
Nogmaals: zie de imagettftext page (vlak boven de "User Contributed Notes").
lijkt me toch vrij duidelijk ....
Pagina: 1