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
'
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
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
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
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
-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
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
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
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
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 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.
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
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];
13 matches
Mail list logo