[solved] Undefined function ImageTTFText

Discussion in 'Install/Configuration' started by Banana Lord., Aug 28, 2011.

  1. Banana Lord.

    Banana Lord. New Member

    I'm trying to use the ImageTTFText function on my website but it keeps saying it's an undefined function. I compiled PHP5.3.8 with --with-ttf too =(

    Am I doing smoething wrong? OS is Ubuntu 10.04 LTS. Thanks
    Last edited by a moderator: Aug 28, 2011
  2. webizen

    webizen New Member

    try compile with --with-freetype-dir AND --enable-gd-native-ttf
  3. Banana Lord.

    Banana Lord. New Member

    Sorry, but what should I be installing and setting the freetype directory to? I've never really installed custom modules before =(

    EDIT: Thanks for the speedy reply though =D
  4. webizen

    webizen New Member

    for example, use '--with-freetype-dir=/usr' if 'apt-get install libfreetype6-dev' is done.
  5. Banana Lord.

    Banana Lord. New Member

    Thanks so much =D
  6. Banana Lord.

    Banana Lord. New Member

    Having another issue related to this,

    Fatal error: Call to undefined function imagejpeg() in /home/bananatree/html/mc/shrink.php on line 46

    do I need something else to use imagejpeg?
  7. webizen

    webizen New Member

    your PHP needs to have GD jpeg support. Add following option in PHP compile.
  8. Banana Lord.

    Banana Lord. New Member

    Thank you =)

Share This Page