John P. Looney wrote:
> Just thought of something. Any mailcap experts ?
>> I was thinking, it'd be cool if any images I was emailed could be scaled
> down to 80 pixels wide, then piped to an IMG->ASCII converted, for
> displaying in mutt.
>> I was thinking of something like;
>> image/*; convert -scale 80 '%s' - | some_ascii_filter | ; copiousoutput
>> Any ideas what an ascii filter could be ?
You could roll your own using libAA - something like the aa
plug-in to the gimp, only more general. Should be a trivial
aa_init() with the required stuff, followed by repeated
aa_putpixel() on the loaded image. Then set the renderparams to
sane values, and away ye go. Clean up with aa_flush and aa_close
and we're done.
E-Mail: bolsh at gimp.org
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!