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 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 server load if
> > the image is generated dynamically for each visit to a page. It's best
> > to save the image once it's first created and use that file 
> > if it exists
> > the next time round.
> > 
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> 
> Some folks call this a "cache" ;-)
> http://en.wikipedia.org/wiki/Cache
> 
> 


Yeah, well if ya wanna get all tek-nik-all! :p

Thanks,
Ash
http://www.ashleysheridan.co.uk




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 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 server load if
> the image is generated dynamically for each visit to a page. It's best
> to save the image once it's first created and use that file 
> if it exists
> the next time round.
> 
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk

Some folks call this a "cache" ;-)
http://en.wikipedia.org/wiki/Cache


-- 
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 server load if
the image is generated dynamically for each visit to a page. It's best
to save the image once it's first created and use that file if it exists
the next time round.

Thanks,
Ash
http://www.ashleysheridan.co.uk




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



[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 user.

Can I take this text box and make it a png?

Any pointers or insight appreciated.
If anyone happens to knows of a javascript equiv., that would work too.
TIA

Karl DeSaulniers
Design Drumm
http://designdrumm.com