[How To] Bagaimana menghilangkan error “imageantialias() is not available” saat install jpgraph.
Setelah download jpgraph di di sini http://jpgraph.net/download/ dan ekstraks di folder server.
“The function imageantialias() is not available in your PHP instalation. Use GD version that comes with PHP and not the standalone version.”
Intinya fungsi imageantialias tidak ada pada setting PHP di komputer Apa yang salah dengan ini ? Bagaimana solusi pemecahannya ?
. Inilah dia solusi permasalahan ini :
Langkah 1 :
Buka file gd_image.inc.php yang terdapat pada folder jpgraph/src/
Langkah 2:
Cari source code function berikut ini :
// Should we use anti-aliasing. Note: This really slows down graphics!
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.')
}
}
Langkah 3 :
Berikan tanda // pada baris
JpGraphError::RaiseL(25128);
sehingga menjadi seperti ini :
// Should we use anti-aliasing. Note: This really slows down graphics!
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.')
}
}
Kemudian Simpan.
Langkah 4 :
Silahkan di test kembali dan inilah hasilnya :
Salam Blogger!
No comments:
Post a Comment