Re: Image manipulation recommendation?
Maybe GD.pm? --- Ryan Thompson [EMAIL PROTECTED] wrote: Hi all, I hope this isn't too far off topic. I'm working on a mod_perl web project in which it would be *really* quite handy if I could dynamically rasterize text over existing images. What I would ideally like is a pointer to a good Perl library that will allow me to take an existing image (gif, png, or jpg), and fairly easily render Type 1 (preferred) or Truetype fonts overtop of the image, and return the result. Caching the result would be a bonus. For this project, ease of implementation far outweighs the need for bells and whistles. I'd rather not have to learn a complex API just to throw some dynamic text on an image. :-) Thanks, - Ryan -- Ryan Thompson [EMAIL PROTECTED] SaskNow Technologies - http://www.sasknow.com 901 1st Avenue North - Saskatoon, SK - S7K 1Y4 Tel: 306-664-3600 Fax: 306-664-3630 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America http://www.sold.com.au - SOLD.com.au - Find yourself a bargain!
Re: Image manipulation recommendation?
On Thu, 27 Jun 2002, Ryan Thompson wrote: I'm working on a mod_perl web project in which it would be *really* quite handy if I could dynamically rasterize text over existing images. Apache::ImageMagick ? http://search.cpan.org/search?dist=Apache-ImageMagick -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTECTED] ';use Term'Cap;$t=Tgetent Term'Cap{};print$t-Tputs(cl);for$w(split/ +/ ){for(0..30){$|=print$t-Tgoto(cm,$_,$y). $w;select$k,$k,$k,.03}$y+=2}
Access to form parameters (POST)
I know, of course, how to use the %args section to get access to specific parameters passed to a component, and how to use default values to make them optional. Is there a reasonable way to get access to a list, array, hash, whatever, of the parameters passed and their values? I'd like to not have to list them all in some cases, and have a lot of optional ones in other cases. -- David Dyer-Bennet, [EMAIL PROTECTED] / New TMDA anti-spam in test John Dyer-Bennet 1915-2002 Memorial Site http://john.dyer-bennet.net Book log: http://www.dd-b.net/dd-b/Ouroboros/booknotes/ New Dragaera mailing lists, see http://dragaera.info
Getting component arguments from a %def subcomponent
Obviously you can pass the component args into the subcomponent when you invoke it. That's my workaround. I guess I could copy the component args into component-wide variables in %init (declaring the variables in %once). Fine, *two* workarounds. Am I missing some way I can just reference the component arguments directly in a subcomponent, though? -- David Dyer-Bennet, [EMAIL PROTECTED] / New TMDA anti-spam in test John Dyer-Bennet 1915-2002 Memorial Site http://john.dyer-bennet.net Book log: http://www.dd-b.net/dd-b/Ouroboros/booknotes/ New Dragaera mailing lists, see http://dragaera.info
Commercial use of mod_perl / modules
I've been asked an interesting (though apologies if this is a heated or irelevant topic) question: what's the legality of using mod_perl (and indeed Apache), and the available modules, in a non-GPL commercial application for which there is a charge? I can't think of any modules off hand that are GPLd (most of the ones I've come across tend to say this is freeware, you're free to use it as you wish so long as you preserve my copyright message, etc.). As far as I can see, therefore, it is fine to use Apache and most of the perl modules (if they're not GPLd), as supporting tools, in a commercial project without paying for, or infringing, any authors's rights. So long, I guess, as you make it clear that there is no charge for Apache or any of the associated perl modules that you use in that project, and produce a list of all the individual authors' copyright notices. Sorry -- don't want to turn this into a long thread about commercialism versus freedom -- just wondering if there is a clear stance on the issue. Cheers Kirk.
RE: Commercial use of mod_perl / modules
ask a lawyer. if you get taken to court but some guy on some mailing list said it was ok is not a great defence. all: can we please not turn this thread into a million and one personal interpretations of the situation. unless you are qualified to give a legal advice, you are just creating list fluff and wasting bandwidth. -pete -Original Message- From: Kirk Bowe [mailto:[EMAIL PROTECTED]] Sent: Friday, June 28, 2002 11:30 AM To: [EMAIL PROTECTED] Subject: Commercial use of mod_perl / modules I've been asked an interesting (though apologies if this is a heated or irelevant topic) question: what's the legality of using mod_perl (and indeed Apache), and the available modules, in a non-GPL commercial application for which there is a charge? I can't think of any modules off hand that are GPLd (most of the ones I've come across tend to say this is freeware, you're free to use it as you wish so long as you preserve my copyright message, etc.). As far as I can see, therefore, it is fine to use Apache and most of the perl modules (if they're not GPLd), as supporting tools, in a commercial project without paying for, or infringing, any authors's rights. So long, I guess, as you make it clear that there is no charge for Apache or any of the associated perl modules that you use in that project, and produce a list of all the individual authors' copyright notices. Sorry -- don't want to turn this into a long thread about commercialism versus freedom -- just wondering if there is a clear stance on the issue. Cheers Kirk.