GD Library error - undefined function imageantialias

Discussion in 'Installation/Configuration' started by plathw, Sep 9, 2008.

  1. plathw

    plathw New Member

    I am getting the following error that I believe tells me that GD Library is not working properly:

    Fatal error: Call to undefined function imageantialias() in /var/www/web40/web/cap.php on line 51

    I am running Ubuntu with ISPconfig. I checked my phpinfo and GD library shows the following:

    GD Support enabled
    GD Version 2.0 or higher
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.1.10
    T1Lib Support enabled
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled

    Any ideas on what could be going on?
     
  2. Ben

    Ben ISPConfig Developer ISPConfig Developer

    The only hint the php doc's give, that this function only exists with the bundled version of GD, so I'd guess this is not the "bundled" one.

    Does
    var_dump( function_exists('imageantialias'));
    return false?

    Also
    var_dump( function_exists('imagecreatetruecolor'));
    should return false is it is another "truecolorimageonly" function.
     
  3. plathw

    plathw New Member

    That should be the GD bundled with ubuntu, but I'm not 100% sure.

    How would I run those? Sorry, kind of a noob here.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    You can put them in a PHP script, e.g. like this:
    PHP:
    <?php

    if (false === var_dumpfunction_exists('imageantialias'))) echo 'error1';
    if (
    false === var_dumpfunction_exists('imagecreatetruecolor'))) echo 'error2';
    ?>
     
  5. falko

    falko Super Moderator ISPConfig Developer

    This post from Ben (should be post #4 in this thread) got lost today because of a server failure. I apologize and add it again for the sake of completeness:

     
  6. plathw

    plathw New Member

    Here is the output:
    Code:
    bool(false) bool(true)
     
  7. falko

    falko Super Moderator ISPConfig Developer

    So the imageantialias does not exist. Which distribution are you using, and how exactly did you install PHP?
     
  8. plathw

    plathw New Member

  9. falko

    falko Super Moderator ISPConfig Developer

Share This Page