Friday, July 22, 2011

jpgraph: The function imageantialias() is not available

error message:

Fatal error: Call to undefined function imageantialias() in /var/www/vhosts/bar.php on line 13

The function imageantialias() is not available in your php installation. Use the GD version that comes with PHP and not the standalone version.

SOLUTION:
Open the file jpgraph.x.x.x/src/gd_image.inc.php, find the function SetAntiAliasing and comment this line (about line 110 in the version jpgraph-3.5.0b1):

else {
//JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.')
}

10 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. After I commented that line also getting error -- The image "URL" cannot be displayed because it contains errors.
    Please suggest me how to fix this issue

    ReplyDelete
  3. Thank you so much!

    ReplyDelete
  4. Thanks a lot, you have saved me

    ReplyDelete
  5. Big Thanks !!! :-)

    ReplyDelete