GD jest zainstalowane,
text/plain mi się nie wyświetla, plik zaczyna się pobierać ;O
Okej, uzyskałem taki, działający, kod:
<?php
header("Content-type: image/jpeg"); $obrazek = ImageCreateFromJpeg("lesmis.jpeg");
$cytaty = "Whether true or false, what is said about men often has as much influence on their lives, and particularly on their destinies, as what they do.|If the soul is left in darkness, sins will be committed. The guilty one is not he who commits the sin, but the one who causes the darkness.|In passing, we might say that success is a hideous thing. Its false similarity to merit deceives men...They confuse heaven's radiant stars with a duck's footprint left in the mud.|All things considered, sire, there is nothing to fear from these people. They are as carefree and lazy as cats. The lower classes in the provinces are restless, those in Paris are not...They are not dangerous. In sum: dependable riffraff.";
$losowycytat = explode("|", $cytaty);
$losowycytat1 = $losowycytat[rand(0
, count($losowycytat)-1
)];
$rozmiar = 10;
$pochylenie = 0;
$x = 136;
$y = 35;
$font = 'georgia.TTF';
$white = imagecolorallocate($obrazek, 255, 255, 255);
imagettftext($obrazek, $rozmiar, $pochylenie, $x, $y, $white, $font, $losowycytat1);
ImageJpeg($obrazek);
?>
Tylko... da się jakoś sprawić, żeby tekst się zawijał?