LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] images in mail...

[ILUG] images in mail...

David Neary dneary at wanadoo.fr
Thu Jun 27 11:47:23 IST 2002


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
enough operation... 

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.

Dave.

-- 
       David Neary,
    Marseille, France
  E-Mail: bolsh at gimp.org




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell