gzip compression image

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    gzip compression image

    you remember the gzip image that i've used at besttop and other my sites which showed the compression percentage?

    many wapmasters have cloned it and still are still using it at their sites but results were not as nice as the original.

    so here is the original code. (c) gumslone

    PHP Code:
    <?php

    $num 
    $_GET['num'];
    $size imagettfbbox(60"/fonts/04B_03B.TTF"$num.'%');
    $xsize abs($size[0]) + abs($size[2]);
    $x4=29+$xsize;
    $im = @ImageCreate ($x411)
          or die (
    "Kann keinen neuen GD-Bild-Stream erzeugen");
    $background_color ImageColorAllocate ($im255255255);
    if (
    $num>0$text_color3 ImageColorAllocate ($im10023050);
     else 
    $text_color3 ImageColorAllocate ($im25500);
    Imagefilledrectangle ($im00649$background_color );
    ImageTTFText ($im6038$text_color3"/fonts/04B_03B.TTF","GZIP");
    Imageline ($im230239$text_color3);
    ImageTTFText ($im60268$text_color3"/fonts/04B_03B.TTF",$num.'%');
    Imagerectangle ($im00$x4-110$text_color3);
    header('Content-Type: image/PNG');
    ImagePNG ($im);
    imagedestroy($im);

    ?>

    for the ttf font you can search on google or use your own.
    Attached Files
    Advertise your mobile site for FREE with AdTwirl

Working...
X