Mam na serwerze GD w wersji 2.0.35, wszystkie formaty supportowane.
Mój kod wygląda tak:
<?php $im = imagecreatefromgif("http://mindworxadvisory.com/images/offer-img.gif"); ?>
Mimo tego nie tworzy obrazka. Co może być tego przyczyną?
<?php $im = imagecreatefromgif("http://mindworxadvisory.com/images/offer-img.gif"); ?>
<form action="" method="post"> Podaj nazwe postaci:<br> <input type="text" name="nazwa"><br> Podaj poziom postaci:<br> <input type="text" name="lv"><br> Podaj serwer: <input type="text" name="srv"><br> <input type="hidden" name="slij" value="1"> <input type="submit" value="Wyslij"> </form> <?php if($_POST["slij"]==1){ $im = imagecreatefrompng('840_metin2.png'); $textcolor = imagecolorallocate($im, 0, 0, 255); imagestring($im, 5, 0, 0, 'Hello world!', $textcolor); imagepng($im); imagedestroy($im); } ?>
<?php { $im = imagecreatefrompng('aaa.png'); $textcolor = imagecolorallocate($im, 0, 0, 255); imagestring($im, 5, 0, 0, 'Hello world!', $textcolor); imagepng($im); imagedestroy($im); } else { ?> <form action="" method="post"> Podaj nazwe postaci:<br> <input type="text" name="nazwa"><br> Podaj poziom postaci:<br> <input type="text" name="lv"><br> Podaj serwer: <input type="text" name="srv"><br> <input type="hidden" name="slij" value="1"> <input type="submit" value="Wyslij"> </form> <?php } ?>