Lanjut ke konten

[First Aid] JPGraph Error 25128: The function imageantialias() is not available in your PHP installation

April 19, 2012
http://bimosaurus.com/2012/04/19/first-aid-jpgraph-error-25128-the-function-imageantialias-is-not-available-in-your-php-installation

Pesan ini sering muncul ketika kita koding grafik: 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

Pesan ini cukup jelas. Yaitu fungsi imageantialias() yang terdapat pada JPGraph tidak berfungsi dengan benar. Dalam pesan error juga telah dijelaskan : Silakan gunakan GD Version bawaan PHP dan bukan berbeda versi dengan bawaan PHP.
Langkah paling bagus ya, kita remove GD dan PHP, lantas kita install ulang secara bersama. Hal ini akan sangat enak jika kita menggunakan Linux jenis Debian/Ubuntu/Mint atau Fedora/RedHat/Centos. Karena mereka telah mendukung dependencies installation dengan apt-get dan yum

PERTOLONGAN PERTAMA / FIRST AID

Ada cara cepat untuk menyelesaikan error ini yaitu dengan melakukan editing file gd_image.inc.php. Lho apakah masalah hilang? Tidak, sebenarnya ketika dipandang versi gd dan php kurang pas, maka jika dipandang beresiko error, akan ditutup dengan pesan error tersebut oleh JPGraph. Kita akan bongkar hal itu. Buka file gd_image.inc.php yang terdapat dalam direktori src dalam jpgraph anda. Lantas editlah bagian ini:

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

Tutuplah dengan tanda // pada baris ke 110, yaitu bagian :

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

Sehingga menjadi seperti berikut

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

Bukalah Grafik anda… Sim Salabim

From → Coretan

One Comment
  1. Zora Horn permalink

    Delighted New Year !!

    Welcome to SourcingIC.com as well as we are looking for your RFQ or Bom List for us to estimate.

    We are Hong Kong supplier of the adhering to IC brands for 15 years:

    TOSHIBA
    ALTERA
    ANALOG TOOLS
    TEXAS TOOLS
    ST.
    FAIRCHILD.
    ATMEL.
    XILINX.
    INTEGRATED CIRCUIT.
    SAMSUNG.
    ADAGE.
    NEC.
    NXP.
    ON SEMI.
    PHILIPS.
    FREESCALE.
    INFINEON.
    INTERSIL.
    DIRECT INNOVATION.
    MOTOROLA.

    I understand you may need to discover ICs.

    The significant goal for us is sourcing ICs. As you know greater than 99% ICs offered in this planet could be located in China, however it is time-costly to locate or send inquiries to countless distributors or agencies one at a time to locate who obtained stocks as well as get good quotation!

    Step 1: Skype or email our teammate: sales@sourcingic.com.

    Action 2: Tell us part number and the quantity or other demands.

    Action 3: I will resource from distributors as well as our teammate will certainly select the reliable supplier to estimate.

    Step 4: Our skilled IC technicans will evaluate the ICs to verify they are wizard as well as working well.

    Step 5: Well packed and delivered.

    Repayment Method:.
    Paypal/ Western Uniuon/ TT.
    See you!
    Best Regards,.
    Sourcing IC.
    To supply every rare ICs.

    Company Background:.
    Souring IC Ltd is a Hong Kong based company with China workplaces in various provinces. We provide a wide variety of digital components, focused on IC including Audio IC, Power Management IC, Customer Electronic IC, etc. Our objective is to supply any components which are tough to be sourced in the digital market, particularly the one discountinued by manufacturing facilities. With the assistance of newest A.I system as well as the elite teammates we possessed, we have the ability to resource every ICs that is not frequently utilized by the co-operation with thousands manufacturing facilities as well as companies in China. We are able to supply the most affordable rate without MOQ.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google

You are commenting using your Google account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s

%d blogger menyukai ini: