Re: [PHP] Writing text into images, and setting text size [SOLVED]

2007-12-19 Thread Dave M G
Rob, Thank you for helping me through this. '--enable-gd-native-ttf' '--with-ttf' This was the key information. I thought that having the GD modules installed meant I had TTF support. But after I saw that, I realized that TTF support was a separate module within the GD library. On my

RE: [PHP] Writing text into images, and setting text size [SOLVED]

2007-12-19 Thread Andrés Robinet
' Subject: Re: [PHP] Writing text into images, and setting text size [SOLVED] Rob, Thank you for helping me through this. '--enable-gd-native-ttf' '--with-ttf' This was the key information. I thought that having the GD modules installed meant I had TTF support. But after I saw that, I

Re: [PHP] Writing text into images, and setting text size

2007-12-18 Thread Dave M G
Rob, Thank you for responding. Try the following: ... you load PrintImage.php into your browser and you'll get a nice gray rectangle with the word Works! in the center of it. If you don't get that... then you have a problem that is not related to path or to PHP per-se... Wow... thank you

RE: [PHP] Writing text into images, and setting text size

2007-12-18 Thread Andrés Robinet
AM To: Andrés Robinet Cc: 'PHP List' Subject: Re: [PHP] Writing text into images, and setting text size Rob, Thank you for responding. Try the following: ... you load PrintImage.php into your browser and you'll get a nice gray rectangle with the word Works! in the center

Re: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Dave M G
Casey, Thank you for replying. Try imagettftext(). I did, as explained: $font = '/usr/share/fonts/truetype/freefonts/FreeSans.ttf'; $imagettftext($image, 20, 0, $x, $y-10, $textColour, $font, $text); So my questions remain: 1. 'FreeSans.ttf' is in my /usr/share/fonts/truetype/freefonts

RE: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Andrés Robinet
-Original Message- From: Dave M G [mailto:[EMAIL PROTECTED] Sent: Monday, December 17, 2007 6:47 AM To: Casey Cc: PHP List Subject: Re: [PHP] Writing text into images, and setting text size Casey, Thank you for replying. Try imagettftext(). I did, as explained: $font

Re: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Richard Lynch
On Sun, December 16, 2007 7:59 pm, Dave M G wrote: I've been able to write text into an image using the default fonts available, with this command: ImageString($image, 5, $x - 20,$y-10, $text, $textColour); The problem is that the font that is identified by the index 5 is too small. But it

Re: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Dave M G
Andrés, Thank you for responding. Deploy the fonts along with your scripts... that's the only way I know. ... I do so for a custom CAPTCHA script I've made. This sounds like a good solution. I'm having a little trouble implementing it, however. I have what I believe is a freely

RE: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Andrés Robinet
deadlines). Hope this helps, Rob -Original Message- From: Dave M G [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 12:31 AM To: Andrés Robinet Cc: 'PHP List' Subject: Re: [PHP] Writing text into images, and setting text size Andrés, Thank you for responding

RE: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Andrés Robinet
PROTECTED] Sent: Tuesday, December 18, 2007 1:33 AM To: 'Dave M G' Cc: 'PHP List' Subject: RE: [PHP] Writing text into images, and setting text size I'm tempted to say that the problem is that the system is not finding the font... you'd need to include the full path to the font (and it must

[PHP] Writing text into images, and setting text size

2007-12-16 Thread Dave M G
PHP List, I've been able to write text into an image using the default fonts available, with this command: ImageString($image, 5, $x - 20,$y-10, $text, $textColour); The problem is that the font that is identified by the index 5 is too small. But it seems that it can't be scaled in any way.

Re: [PHP] Writing text into images, and setting text size

2007-12-16 Thread Casey
Try imagettftext(). On Dec 16, 2007 5:59 PM, Dave M G [EMAIL PROTECTED] wrote: PHP List, I've been able to write text into an image using the default fonts available, with this command: ImageString($image, 5, $x - 20,$y-10, $text, $textColour); The problem is that the font that is

[PHP] writing text on images

2001-11-27 Thread e c h o p l u s A T w o r k
Hi all, I've stored on a db using blob fields, the content of some image file. Ayones know how to write on these image on fly w/o using the filesystem? I mean: ? $sql=SELECT file_img FROM ..; while($val=mysql_fetch_row($select)){ header(Content-type: image/jpeg); $img=$val[0];