Call to undefined function

Nevite proc to pise?

<font color=ff0000><br />
<b>Fatal error</b>: Call to undefined function: imagegif() on line <b>8</b><br />
</font>

<?
Header("Content-type: image/gif");
Header("Expires: ".GMDate("D, d M Y H:i:s")."GMT");

$img = ImageCreate(100,200);
$color = ImageColorAllocate($img,255,0,0);
ImageRectangle($img,0,0,50,100,$color);
ImageGIF($img);
?>
>>ImageGIF($img);

Funkce imagegif() neexistuje..
ImageGIF() by mela zapsat obrazek na vystup nebo do souboru.

Jak to tedy udelat, aby se vytvoreny obrazek zobrazil?
ImagePNG()

gif je od GD 2.0 zakazane kvoli autorskym pravam na kompresiu
To ovšem nebrání nikomu, zvláště ne zdejším adminům, aby to přikompilovali... ;) přece se nebude dělat s oškubaným GD :/
>> gif je od GD 2.0 zakazane kvoli autorskym pravam na kompresiu

To už "dávno" neplatí :-)
http://www.boutell.com/gd/faq.html

TÁHNĚTE S NESMYSLNEJMA PATENTAMA K ČERTU!
Jo, patent na LZW uz nejni. SW patenty = Zhovadilost
A fungujou ostatni fce pro praci s obrazky?

Proc napr. nasledujici skript nevypise to co je v $cislo?

<?
Header("Content-type: image/gif");
Header("Expires: ".GMDate("D, d M Y H:i:s")."GMT");

$cislo = 12345;

$fontsize = 5;
$digits = 5;
$img = ImageCreate(ImageFontWidth($fontsize)*$digits,ImageFontHeight($fontsize));
$textcolor = ImageColorAllocate($img,255,0,0);
ImageString($img,$fontsize,0,0,$cislo,$textcolor);
ImagePNG($img);
?>
Note:
Since all GIF support was removed from the GD library in version 1.6, this function is not available if you are using that version of the GD library. Support is expected to return in a version subsequent to the rerelease of GIF support in the GD library in mid 2004. For more information, see the » GD Project site.

The following code snippet allows you to write more portable PHP applications by auto-detecting the type of GD support which is available. Replace the sequence header ("Content-type: image/gif"); imagegif ($im); by the more flexible sequence:

copy to clipboard
<?php
if (function_exists("imagegif")) {
header ("Content-type: image/gif");
imagegif ($im);
}
elseif (function_exists("imagejpeg")) {
header ("Content-type: image/jpeg");
imagejpeg ($im, "", 0.5);
}
elseif (function_exists("imagepng")) {
header ("Content-type: image/png");
imagepng ($im);
}
elseif (function_exists("imagewbmp")) {
header ("Content-type: image/vnd.wap.wbmp");
imagewbmp ($im);
}
else
die("No image support in this PHP server");
?>


php manual moj :)
preco to nerobite podla manualu?

a k tomu prikladu hore, .. dat header na gifko a poslat to v PNG? neviem ci je to podla standardov.. (asi nie) (a ak to nejaky browser zobrazi spravne, tak dakujte autorom :) )
Dik.
Muzes dat odkazy na manuly a jake s nimi mas zkusenost?