How to Fix JpGraph Error 25128: The function imageantialias() is not available in your PHP installation.

This error message shown up when I tried to draw chart using JpGraph:

To fix the problem, edit file gd_image.inc.php inside JpGraph folder, and disable the line start with JpGraphError::RaiseL(25128); in function SetAntiAliasing:


function SetAntiAliasing($aFlg=true) {
$this->use_anti_aliasing = $aFlg;
if( function_exists('imageantialias') ) {
imageantialias($this->img,$aFlg);
}
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.')
}
}

Keywords:

  • jpgraph error 25128
  • jpgraph error: 25128 the function imageantialias() is not available in your php installation use the gd version that comes with php and not the standalone version

22 thoughts on “How to Fix JpGraph Error 25128: The function imageantialias() is not available in your PHP installation.

  1. ¡Muchas gracias hermano! ¡Me has librado de dolores de cabeza!

    translating …

    Thank you very much brother! I got rid of headaches!

  2. I downloaded and installed jpgraph. But I could not find a a php module file named jpgraph_matrix.php. So am not able to generate matrix plot. Could you tell me where can I get that file?

  3. Thanks, but the file jpgraph_matrix.php is empty.May I know why is like that? (or is there any method to download the file?)

  4. Very thankful for providing the file.
    Issue regarding the required file is solved. However I couldn’t succeed in generating output, but getting ann error saying The image “http://…” cannot be displayed because it contains errors. The error message is displayed in a dark background in browser.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.