[PHP] Creating image on-the-fly

2010-07-07 Thread Karl DeSaulniers
Hello, I was wondering if there was any way I can create an image from some text with php? For Eg: I have a text box that will have a number/letter combo, I want it to dynamically gen the num/lett combo, then create say a transparent png of that number/letter combo then display it to the

Re: [PHP] Creating image on-the-fly

2010-07-07 Thread Marc Guay
I was wondering if there was any way I can create an image from some text with php? Something like this? http://sgss.me/obsolete/experiments/phpfontimagegenerator2/usage.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating image on-the-fly

2010-07-07 Thread Ashley Sheridan
On Wed, 2010-07-07 at 16:05 -0400, Marc Guay wrote: I was wondering if there was any way I can create an image from some text with php? Something like this? http://sgss.me/obsolete/experiments/phpfontimagegenerator2/usage.php One thing to bear in mind is that this introduces extra

RE: [PHP] Creating image on-the-fly

2010-07-07 Thread Daevid Vincent
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Wednesday, July 07, 2010 1:22 PM To: Marc Guay Cc: php-general Subject: Re: [PHP] Creating image on-the-fly On Wed, 2010-07-07 at 16:05 -0400, Marc Guay wrote: I was wondering

RE: [PHP] Creating image on-the-fly

2010-07-07 Thread Ashley Sheridan
On Wed, 2010-07-07 at 13:43 -0700, Daevid Vincent wrote: -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Wednesday, July 07, 2010 1:22 PM To: Marc Guay Cc: php-general Subject: Re: [PHP] Creating image on-the-fly On Wed, 2010-07-07

[PHP] Creating Image v2... storing thumblains...

2002-08-01 Thread mp
Thanks to those who helped me last time about creating image, but now there is another problem... I'm making a thumblain like this: $base_size = 300; $size = GetImageSize($image1); $kof = ($size[0] $size[1]) ? $size[0] : $size[1]; $koef = ($base_size / $kof);

Re: [PHP] Creating Image v2... storing thumblains...

2002-08-01 Thread mp
Oh don't worry about this... I've already found the mistake... Thanks to those who helped me last time about creating image, but now there is another problem... I'm making a thumblain like this: $base_size = 300; $size = GetImageSize($image1); $kof =

[PHP] Creating Image...

2002-07-31 Thread mp
I want to create simple image... I execute this script: $im = imagecreate (50, 100); $fp = fopen(test/im.jpg,w); fwrite($fp, imagegd($im)); fclose($fp); But there is some problems about this... Could somebody help me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Creating Image...

2002-07-31 Thread Jason Wong
On Thursday 01 August 2002 02:11, mp wrote: I want to create simple image... I execute this script: $im = imagecreate (50, 100); $fp = fopen(test/im.jpg,w); fwrite($fp, imagegd($im)); fclose($fp); But there is some problems about this... Could somebody help me? Only if you say what

RE: [PHP] Creating Image...

2002-07-31 Thread Andrew Chase
Message- From: mp [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 11:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Creating Image... I want to create simple image... I execute this script: $im = imagecreate (50, 100); $fp = fopen(test/im.jpg,w); fwrite($fp, imagegd($im

Re: [PHP] Creating Image...

2002-07-31 Thread hugh danaher
] To: [EMAIL PROTECTED] Sent: Wednesday, July 31, 2002 1:10 PM Subject: RE: [PHP] Creating Image... To write a GD image to disk as a jpeg, do this instead: $im = imagecreate(50,100); imagejpeg($im, test/im.jpg); You don't need to use file handlers. Of course, without doing anything like

RE: [PHP] creating Image to display without saving it.

2002-05-24 Thread Leotta, Natalie (NCI/IMS)
, 2002 3:00 PM To: Leotta, Natalie (NCI/IMS) Cc: [EMAIL PROTECTED] Subject: Re: [PHP] creating Image to display without saving it. On Thu, 23 May 2002, Leotta, Natalie (NCI/IMS) wrote: I've got a page where I create an Image that I want to put into one of my HTML table cells. I've been doing

[PHP] creating Image to display without saving it.

2002-05-23 Thread Leotta, Natalie (NCI/IMS)
I've got a page where I create an Image that I want to put into one of my HTML table cells. I've been doing this by saving the file, chmoding it, and then opening it using image source in the HTML. The problem is that when you do that, the new version of IE has that stupid pop-up window when

Re: [PHP] creating Image to display without saving it.

2002-05-23 Thread Miguel Cruz
On Thu, 23 May 2002, Leotta, Natalie (NCI/IMS) wrote: I've got a page where I create an Image that I want to put into one of my HTML table cells. I've been doing this by saving the file, chmoding it, and then opening it using image source in the HTML. The problem is that when you do