Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 31 Aug 2005.
Re: Convert images into colorful ASCII pictures in HTML or R

Re: Convert images into colorful ASCII pictures in HTML or RTF format.

Magical wrote:
> With Magic Converter, it can convert images into colorful ASCII
> pictures in HTML or RIF format, as well as dramatic monochrome images
> in text format.
> 
> See the example at
> http://www.keksoft.com/eng/mc/asciipicture.htm

For the color conversions try to limit the amount of HTML you output.

You output every single block with a FONT tag complete with color and
face .. that is very inefficient.

Try encapsulating the output instead with DIV tags and set the color and
font using CSS.

One DIV for the entire image setting the font and one DIV class or id
for each individual color .. then you can reuse a DIV colorset when the
color appears again in the image.

This way you only define the font once and the color as many times as
there are unique colors.

You can even use shorthand for some colors so instead of FFFFFF you use FFF

If you want to go beyond that you can nest the tags inside each other,
but you would need to make an algorithm that calculates the most
efficient way to nest them.


Also look closer at Jave ( Jave.de ) for ideas for better shade to
character conversions .. You seem to convert to characters simply based
on their "weight" in pixels , but this would include characters that
distract the eye due to their unique shape.
Try to use chars that have a shape that blends well with others
Look at the different charactersets that Jave uses to get an idea ..

 .:oO8 blends well for example
.:%oO$8@#M is also good.

Here is a snippet from a study of shading I did once :


    ,ooSdoSodoL,.,..  ....   ,c.   _
   dSSSSSSSSSSS!!!!!..:::::,d$$$[,dOO
   dSSSSSSSSSS8!!!!!!::::;d$$$$oOOOOOP
    YSSSSSSSSS;!!!!:::::c$$$$OOOOOOO',.
     YSSSSSSSP!!!::::;c$$$$,o8OOO,bo888[
      `YPPPSP  ''::;d$$$$OoOOOjb888888P
                   `FF?dOdOOd88888888bo@b
                       YO`8d888888@@@@@@b
                         d888888@@@@@@@@;m.
      _                 `8888@@@@@@@dmmMMMM
   m@@@@@m.              `'d@@@@@omdMMMMMM'
  @@@@@@@@@b             ,@@@@@,dMMMMMMMP##
 d@@@@@@@@@@.            Y@@,mMMMMMMMP#####,
 @@@@@@@@@@@[             ,MMMMMMM#########'
 @@@@@@@@@@@             ,MMMM8#########''
 Y@@@@@@@@@'              ;##########''
   "PPPP'`                `####'''''
                           `''

Original message headers
X-Google-Thread: f996b,98233e2b92ad75a
X-Google-Attributes: gidf996b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail
Date: Wed, 31 Aug 2005 17:37:38 +0200
From: Christian 'CeeJay' Jensen <new...@ceejay.cjb.NOSPAMnet>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: alt.ascii-art
Subject: Re: Convert images into colorful ASCII pictures in HTML or RTF format.
References: <112...@g43g2000cwa.googlegroups.com>
In-Reply-To: <112...@g43g2000cwa.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Lines: 61
Message-ID: <4315ce75$0$164$edf...@dtext02.news.tele.dk>
Organization: TDC Totalloesninger
NNTP-Posting-Host: 62.242.199.192
X-Trace: 1125502581 dtext02.news.tele.dk 164 62.242.199.192:36469
X-Complaints-To: abu...@post.tele.dk
Xref: g2news1.google.com alt.ascii-art:1167
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 2005 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.