|
Drawing graphics in forum posts? |
Sigurdur
Member #1,211
April 2001
|
I was reading the forums and saw that people often use ASCII graphics to explain ideas. I wondered if it would be usable to have some utility to draw simple graphics when writing posts? Just something in which you could only draw rectangles, lines, circles and some text (and maybe turn on some grid). Just something really simple. But I dunno what would be the best tool for this, Java applet? What do you think?? I'm sorry if this has been suggested 42 times already |
spellcaster
Member #1,493
September 2001
|
the best tool would be to use your gfx program of choice, upload it somewhere and link to the graph, or inline the gfx. -- |
Sakuera
Member #3,222
February 2003
|
It could be done, but it would take much diskspace on the server, so its owner wouldn't be happy about it. But... if it's as simple as shapes and text, then some specialistic format could be used, eg. 01 //rectangle tag |
Marcello
Member #1,860
January 2002
|
hehe this would be cool <img width="100" height="100"> <pen color="red"> <rectangle x="1" y="1" width="98" height="98"> </pen> <text x="50" y="50" align="center" valign="middle">Hello</text> </img> Marcello |
Sakuera
Member #3,222
February 2003
|
But you wouldn't edit it as text, so your way would only take more space. |
spellcaster
Member #1,493
September 2001
|
If you want a text based format, use SVG. -- |
gnolam
Member #2,030
March 2002
|
Sakuera: [EDIT] -- |
Sigurdur
Member #1,211
April 2001
|
Spellcaster: Yes, it just felt like a lengthy process to create the image, upload it to a webserver and link to it, and it would not be stored alongside the post for future reference. Nice idea using scripts, it would be sufficient for such simple diagrams. How do you think it would be possible to implement such script language in the forums so it would be stable and quick on most browsers? Feels like java applets could be heavy if one thread is filled with such diagrams Maybe Javascript? |
Marcello
Member #1,860
January 2002
|
Php could generate a pretty small png from scripts like those. Dunno what kind of bandwidth hit it'd take though. Marcello |
23yrold3yrold
Member #1,134
March 2001
|
Yeah, some people don't have webspace Maybe we should restrict this to the Programming Forum; I suspect the first week such a feature debuts, the OT Forum would be full of renditions of Bob ... Good idea if Matthew can pull it off though. -- |
Andrei Ellman
Member #3,434
April 2003
|
Question: Is there a program out there that can create ascii drawings using simple graphics primitives (line, box, circle, etc). All we'd need to do then is copy the output and paste it into code-tags when composing the post. The problem with code-tags is that they always apply syntax-highlighting so your ASCII-diagram will have all sorts of funky colours. AE. -- |
Sigurdur
Member #1,211
April 2001
|
Andrei: Maybe Matthew can add another tag which doesn't colorize.. although it would look kinda cool.. for a while Here is one freeware Java ASCII art drawing program, not an applet. : Google had some more ASCII art stuff at: --- About using a script. I was wondering about this with server load. Maybe some caching mechanism would help? The image file (small black/white PNG) would be created from the drawing-script in a cache directory and have a lifetime of say two weeks, then it would be deleted. Always when a post with scripted image is viewed the server first looks if the cached image exists, if not then it would be created again from the drawing-script in the post. After that it would again have the usual lifetime of two weeks. This would make it easier on the server when the threads are active. When they get inactive the images disappear. But if someone wants to review and old post it would just be generated again. Marcello: Maybe the PHP script can be programmed for this? I dunno since I have no experience of PHP coding. Or maybe this is just an overkill? [Edit: Ouch.. used wrong name for Matthew.. soorry.. I will do 50 situps, promise!] |
Marcello
Member #1,860
January 2002
|
Sure, most anything is possible. Marcello |
BAF
Member #2,981
December 2002
|
php is very much like a programming language i bet you all use, called c. or c++. It is very similar, IMO. |
jakerohs
Member #485
June 2000
|
Try out the Ascii-art plugin for the GIMP. Get the AA plugin from here. |
|