Jump to content

Nový projekt s krycím jménem levinne!


Red beanie

Recommended Posts

haha ty si deges :dhttp://cz.php.net/manual/en/function.imagestring.php hned prvni radek

 

imagestring ( resource $image , int $font , int $x , int $y , string $string , int $color )

 

pro tebe vysvetlim xD

 

ImageString ( obrazeknejaky$ , $pismo , $pozicex , $pozicey , "$text" , $barva )->;

Link to comment
Share on other sites

jeahh já sem fakt deb*l :d dik ale to tam nebylo oni tam psali něco divnýho že se musí vytvořit gif atd fakt díkk teď to bude lehký !! :lol::lol:;) dík

ale ještě něco :x

celý kod mám takto

 

<?php

$img = file_get_contents('ban2.gif');

header('Content-Type: image/gif');

echo $img;

$textcolor = imagecolorallocate($img, 0, 0, 0);

imagestring( $img, 5 , 95, 3 , "Ahoj", $textcolor);

imagegif($img);

imagedestroy($img);

?>

 

obrázek se zobrazí ale text už ne !!!! :shock: :?:

a když jsem to zkoušel prohodit takto

 

<?php

$img = file_get_contents('ban2.gif');

$textcolor = imagecolorallocate($img, 0, 0, 0);

imagestring( $img, 5 , 95, 3 , "Ahoj", $textcolor);

header('Content-Type: image/gif');

imagegif($img);

imagedestroy($img);

?>

 

tak to udělalo tento error

 

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/nhost/public_html/hostings/zlk/index.php on line 3

 

Warning: imagestring(): supplied argument is not a valid Image resource in /home/nhost/public_html/hostings/zlk/index.php on line 4

 

Warning: Cannot modify header information - headers already sent by (output started at /home/nhost/public_html/hostings/zlk/index.php:3) in /home/nhost/public_html/hostings/zlk/index.php on line 5

 

Warning: imagegif(): supplied argument is not a valid Image resource in /home/nhost/public_html/hostings/zlk/index.php on line 6

 

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/nhost/public_html/hostings/zlk/index.php on line 7

fakt sem jelito ale tohle už nechápu !!!

Link to comment
Share on other sites

ja to mam prez png obrazek ....

 

<?

header("Content-type: image/png");

$textcolor = ImageColorAllocate($img, 0, 0, 0);

$img=ImageCreateFromPNG("ban2.png");

ImageString($img, 5, 95, 3, "Ahoj", $textcolor);

ImagePNG($img);

ImageDestroy($img);

?>

Link to comment
Share on other sites

dík ale na n-hostu to nefunguje ale fakt dík !!!! už jsem to skoro měl jen jsem to měl uplňe jinak poskladané :thumbup: :thumbup:

EDIT// promiň tak nefunguje fakt nechápu ??!!

 

 

 

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/nhost/public_html/hostings/zlk/index.php on line 3

 

‰PNG

 

IHDRÜcpĎPLTE„‚„DFD„,*,„DÄ$„dd¤Ě&$¤|ÄĆÄ4

D

´"$4d

t´ä&,Śt´¬Ş¬„

śäćä4´$ô.4dfdDTÔ"$¬ô*,tśžś”„¤$Ě&,¬ä*,t”

üţüTŚŽŚTVTŚ<:

t<|

|ĽT|Ľ|ĽşĽôňôtrtLÜ"$|ś¬$Ü&,´ě*,ś

\–ś5ëIDATX…Ő—

WÚ0†ŻCŤL·NQ'ş(•Q&SÁF´ŠÓ9eŘůn6ő˙˙ŽÝ4M“ť@ů8Ţ”äm¸ÉésSš Ą“%図ʮ%¨ÔáVdéńŤň«´m}“mCËGmcč-ܶŤˇGĺ®1˙ĎC)đ«w‚#qňS´Núë±…sP ^9Č&­Ýś•Öq®×Ž2q§†OÎ+>ŁĽŁ'@ŹZ’:ÎŽmű¶ď;ľ}Rŕ&đNsŤŤň{żfűc

çKî#믭‡ĆđýË&¶á» 5|ć\ůůIĺő=zĚĐ’ÔyȆŹGθ˙…(AÉÍuáx˙eÓ0rc

W UX®T

ĺoŽ•×cDhT‡R $I]’

–çńŁ’Z¶<˲ř‰Źźxü««%l2Ŕ\Żçą?

3žË‹ĺZěz

Ďk`{µ€®Äľđ0¦Ů7Ęk1"

?Y®ż; sL»y A„Fę7!.ár3A맍·›AgßpňžäpD¤čF \;ů±C¤VjDé1E"¸ľ¶c wáňŞÝ¤·ú‚vĽ:Ç´O6ÔQE˛ů‰pSÇzĄVWÚI‰ţaŔ Ă}9ú Ž®Şoţ)J­<•¶BCűÝŽ!Őŕ˛TÂm¬jpq_Čş'Z¨§Ów-ˇ§VţkKéńKŘ=\Äô

piT2źŐĘź¦•¶ç¤ë{;.~B‡;Ž~| śY{*™aŮťĆ:

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...