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 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') ) {
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.')


  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

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