The TextImage macro allows you to make an ASCII representation of any image in your asset tree. Not only is this a cool trick to impress your friends at parties, you can now also provide a new means of access to people still using textbrowsers lik lynx.
Installation:
Untar the archive and copy the TextImage.pm file into your <webgui-root>/lib/WebGUI/Macro directory. Enable the macro in your config file, restart your server and you are ready to use this fine piece of internet technology.
Usage:
Create a page or an article and put the macro in the Description field:
^TextImage;
The macro expects that you pass the url of the image asset you want to Asciify as a formvar called aid. So if mysite.com/my/fine/image is the image in question and your macro is at the page mysite.com/textimage, use the following url:
http://mysite.com/textimage?aid=/my/fine/image
Update:
I adapted the Macro to work with the new API. If you're running a 6.99+ version of WebGUI be ure to grab the TextImage-1.0.0-WebGUI_6.99.tart.gz archive. If you are on lower versions use the other.
The 6.99+ version has been tested on WebGUI 7.2.3 only, therfore your mileage may vary on versions between 6.99 and 7.2.3. If it doesn't work, mail me or post a reply.
Changes:
A bug causing the macro to fail on windows systems has been fixed in 1.0.1 .