Dynamically generating text graphics in Zope
I'm trying to create a site for our intranet that will create text graphics that people can use to construct a web site ala Cooltext. For ex, I want to be able to let someone enter five different menu names, pick one of several color schemes/textures, and then spit back the graphics so they can copy them. Two questions: 1) Has anyone done this before, and if so how did they do it (and do you have code you'd be willing to share)? 2) If not, any suggestions on how to get started? Obviously, gimp on Windows is one solution, but I'm a bit daunted at the prospect of taking it on. Are there any apps designed for Windows that can be run dynamically w/o driving you crazy? My Zope site will be running on an NT box, so linux-only software isn't an option. Thanks, Anders
On Tue, 21 Aug 2001 09:20:01 -0400, Anders Schneiderman <schneida@seiu.org> wrote:
I'm trying to create a site for our intranet that will create text graphics that people can use to construct a web site ala Cooltext. For ex, I want to be able to let someone enter five different menu names, pick one of several color schemes/textures, and then spit back the graphics so they can copy them. Two questions:
1) Has anyone done this before, and if so how did they do it (and do you have code you'd be willing to share)?
I suggest you look at PIL, the Python Imaging Library
2) If not, any suggestions on how to get started? Obviously, gimp on Windows is one solution
I dont know gimp, so that one isnt obvious to me. Does gimp provide access via COM? if so you may be in luck; Python's com support is second to none. However COM in Zope is not as easy as it should be; look up 'CoInitializeEx' in the list archives for some extra precautions you need to take. Toby Dickenson tdickenson@geminidataloggers.com
I would suggest PIL. There's an example in the Zope Book! -steve On Tuesday, August 21, 2001, at 08:20 AM, Anders Schneiderman wrote:
I'm trying to create a site for our intranet that will create text graphics that people can use to construct a web site ala Cooltext. For ex, I want to be able to let someone enter five different menu names, pick one of several color schemes/textures, and then spit back the graphics so they can copy them. Two questions:
1) Has anyone done this before, and if so how did they do it (and do you have code you'd be willing to share)?
2) If not, any suggestions on how to get started? Obviously, gimp on Windows is one solution, but I'm a bit daunted at the prospect of taking it on. Are there any apps designed for Windows that can be run dynamically w/o driving you crazy?
My Zope site will be running on an NT box, so linux-only software isn't an option.
Thanks, Anders
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Thanks for the suggestion. From what I can see from the documentation, you can do very basic graphics in Pil: set the font and the color. Can you do textures and other fancier formatting of text, or would I have to go elsewhere? Thanks, Anders At 08:51 AM 8/21/01 -0500, Steve Spicklemire wrote:
I would suggest PIL. There's an example in the Zope Book!
-steve
On Tuesday, August 21, 2001, at 08:20 AM, Anders Schneiderman wrote:
I'm trying to create a site for our intranet that will create text graphics that people can use to construct a web site ala Cooltext. For ex, I want to be able to let someone enter five different menu names, pick one of several color schemes/textures, and then spit back the graphics so they can copy them. Two questions:
1) Has anyone done this before, and if so how did they do it (and do you have code you'd be willing to share)?
2) If not, any suggestions on how to get started? Obviously, gimp on Windows is one solution, but I'm a bit daunted at the prospect of taking it on. Are there any apps designed for Windows that can be run dynamically w/o driving you crazy?
My Zope site will be running on an NT box, so linux-only software isn't an option.
Thanks, Anders
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
There's a product that does this - don't remember the name, but it's on the zope site.
From: Anders Schneiderman <schneida@seiu.org> Date: Tue, 21 Aug 2001 11:28:51 -0400 To: Steve Spicklemire <steve@spvi.com> Cc: zope@zope.org Subject: Re: [Zope] Dynamically generating text graphics in Zope
Thanks for the suggestion. From what I can see from the documentation, you can do very basic graphics in Pil: set the font and the color. Can you do textures and other fancier formatting of text, or would I have to go elsewhere?
Thanks, Anders
At 08:51 AM 8/21/01 -0500, Steve Spicklemire wrote:
I would suggest PIL. There's an example in the Zope Book!
-steve
On Tuesday, August 21, 2001, at 08:20 AM, Anders Schneiderman wrote:
I'm trying to create a site for our intranet that will create text graphics that people can use to construct a web site ala Cooltext. For ex, I want to be able to let someone enter five different menu names, pick one of several color schemes/textures, and then spit back the graphics so they can copy them. Two questions:
1) Has anyone done this before, and if so how did they do it (and do you have code you'd be willing to share)?
2) If not, any suggestions on how to get started? Obviously, gimp on Windows is one solution, but I'm a bit daunted at the prospect of taking it on. Are there any apps designed for Windows that can be run dynamically w/o driving you crazy?
My Zope site will be running on an NT box, so linux-only software isn't an option.
Thanks, Anders
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Anders Schneiderman -
marc lindahl -
Steve Spicklemire -
Toby Dickenson