Help GD
[email protected] ("Massimo di Blasio") Wed, 8 Jul 2009 18:11:37 +0200
| Newsgroups | php.gd.devel |
|---|---|
| Message-ID | <84D81BE106FB4E238CC7323C726B1322@USERPC> |
hello to all ... are now days that I think about how to do it, now you explain what I would basically call a img, below this picture to put a white stripe which says "hosted by". so if the img is large 400 * 400 should become 400 * 450 so that those in 50px + can enter text PHP Code: <? php $ im = imagecreatetruecolor (400, 200); $ middle = ceil ((400 - 200) / 2); $ image = imagecreatefromjpeg ( "tesserino.jpg"); list ($ width, $ height) = getimagesize ($ filename); $ color = imagecolorallocate ($ im, 190, 190, 190); $ colorShadow = imagecolorallocate ($ im, 190, 190, 190); $ pos = 1; $ font = 'adam_gorry_inline.otf'; $ FontSize = "10"; $ fontRotation = "0"; $ str = "Example of GD in PHP." / * Top Level * / imagecopyresampled ($ im, $ image, 0, 0, 0, 0, 400, 200, $ width, $ height); ImageTTFText ($ im, $ FontSize, $ fontRotation, $ center, 195, $ color, $ font, $ str); / / header ( "Content-Type: image / jpeg"); imagejpeg ($ im, "imagine.jpg", 100); imagedestroy ($ im); echo "<img src=\"imagine.jpg\">"; ?> I have done something of this kind, but does not work, or I do not rimposta $ image .. you know me? Thank you -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: GRATIS: 250 Biglietti da Visita + 1 elegante Porta biglietti metallico! Spese di spedizione escluse. Offerta limitata, fai in fretta! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8955&d=8-7