Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 2 Jul 2003.
Re: image to ascii text

Re: image to ascii text

"Arthur J. O'Dwyer" <aj...@andrew.cmu.edu> wrote in message
news:Pin...@unix48.andrew.cmu.edu...
>
> On Tue, 1 Jul 2003, geo wrote:
> >
> > something smaller
>
> Needs some tweaking still.  Maybe you should normalize
> the picture before converting it, so that the dark areas
> come out ' ' and the light areas '@' (or vice versa; I
> don't know which way you intend it to be viewed :)
>
> I guess Lichtenstein's images are double-hard, because
> of the whole Benday dots thing.  Still, this image only
> looks recognizable if I squint or scroll by it really
> quickly.  The contours are all jaggedy, when I'd expect
> a Lichtenstein ASCII to be even *more* stylized and
> smooth than most.
>
> -Arthur

Thanks for the feedback  :)

I'll try to post the code when I finalise it.  The problem I'm working on is
how to incorperate intensity while maintaining shape.  My original attempts
with just shape weren't too bad, IMO.  However they are pretty bad for
shaded images - i.e. > 50% grey regions will be considered black, and < 50%
grey will be white.

Here's some examples, using just shape:

+ve:

@@@@M@@@@@@@@@@@@@M@@@@,        _,g@   m,W@@@@@@@@@@@@@@
@^g@@@%%@m@@MM@@@@@g,`"M@gg,ggg@@@PW 0g 0L0@@@@@@@@@@@@@
g@@^gP^gg@@@@@@@@@@@@@@@@@@@P^g@"  J[  %_0_W@@@@@@@@@@@@
@^,@ g@^_,ggg@@ggggggg@@@"_gM@^   _@%   W[% @@@@@@@@@@@@
^ D #^,g@@@P^`      __,gg@@"      0@@    @@[J@@@@@@@@@@@
 0 # g@@P_,gg@@@@@@@@M@"^ 0[     JP 0,   0%W @@@@@@@@@@@
,L]L0@@,g@P^^^^`         . ?    ,_gg@@L  J@]L0@@@@@@@@@@
@@@g@Pg@^            _,gP      ,@@P%,@    @@%J@@@@@@@@@@
N@@LW@^        __,,g@@@P       0%,a@^0    ML0 @@@@@@@@@@
N@K%J[     _gg@@@@M@@"         JmmF  J[   0[ [`M@@@@@@@@
 @[QJL   _g@"^    _,gggg,       %_    @   ]@g0_ @@@@@@@@
]@@K]    `  ,,_,g@@@W"^^#        0_   0[ g]LWW% 0@@@@@@@
@D]LK       MM@PN_WP]@P4          0g   @,Q0  @@g @@@@@@@
0LD]%         0@La#"^         _    `4  @K[Q  0[W M@@@@@@
 @ D`g     __ggg_L           QP      [ @M"Wg  @JL0@@@@@@
 00g 0L_mMP^^   ^%                  ,F @^  0g @@[0@@@@@@
[JLWL]@^    __    %_           ,mP'0L _@    M @M[0@@@@@@
Q []@#  _m@P""%    %_                 0K    ]L@@[0@@@@@@
Q #[ggmP__  ,,J@_   Wg              , 0F    ][@@LM@@@@@@
Q # M^0^^"QgP` `"YM@m@g,        _g@@@ M     0@M@ @@@@@@@
K %@L 0, _#^           ^%_    _g@@@@@ M    _@P0K]@@@@@@@
LJF`@g_^MP    ,gg,,,gg,  [_,g@@@@@@@@ 0 _o00@ @L#@@@@@@@
 #  `@@@F   _P^^`^``     %`"M@@@@@@@F 0@@@@@L]@ @P"""M@@
]@[   0F  _gK      _,mL  0g   ^^""^   0%[KMK 0K  ___   ]
PW@%_ ]   0@   _,m@P^     0L          #@NN@L @[ M@@W@_ ]
  `W@g[  J@L   F      _.   @         _@  ]@  @[ [   ]Q ]
    M@% _MP   0   _,gM"    0[       g@^  J@  W%     0F,@
_    ][gPJL  ][  _K@T      J@mgggm@@^     @L J@g_  <^,P]
@g,_ '^^@@L  0   0 'Q[      @0L   0@L     0%_ ^W@@mmP^ ]
^M@@g_   W%  ML  Q   ]      @@@@g_ `W%,_   0@@ggggm@$W ]
@g_"@%    @_] %  0   0      M@#@@@m,  `^^     ```_,0"m,]
`"@g 0%  _g@NgMg 0   0      0%@@]00 __      __,g#P,m^m^]
   ^@_0% @@, `@4]^   W       @K[MFF ^"@@M@@P"%$m@^g#"  ]
,,,,,%,%%]@@g,0gJ,,,J%,,,,,,,#%@,,,,,,,,,%%%ggg@%%,,,,,]

-ve:

   _,           .,__   M@@@@@@@@@P^ 0@@[4_
_m^ _,a-___  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@  0M@@P"_,gM@@M@L'@M@@M@@@@@ ]]T ]@ JQ^_,_`0@L
M@g_ ` @@F ]@@D]MMMMM@M@@%Q WQM@@MMMMK @&[ M% J@_@@@L @L
@@@@,  %@ _@M@ M@N@@"_g@@@@L`@@@@@@@P_g@@[ M@  @@@@@ ]PL
W@@@@@@P [j@@LJM@K INW@M@@M[ ^"""'^ g@@@@[ 0@[ `@@@%gP,L
 `M@@ggg `]M@ 0@W 0g_^Q@@@@Q `0@@@L 0@@@@@_ W@g_ `^^,g@L
g_  `W@@%_ @W,0@% @MML0@@M@%    "@@g_ M@@@@g_ ^""^^,P^0L
`"@g  W@@K[0^# @@ %@M QM@@@@      `M@@ggg@@@@@@@@@P^a^0L
gg_^@_ @@#'_g` ^@ M@@ #@@@@@L ''L  M@@@@@@@@@@@"^,P^a^gL
@@@g WL^%  0@g LFm%%W %%@%%%%  ,,]J@gg,,_,,,a**",mP_g@@L
MMMM9 9 ^=  `M `=9MP' @9YMMYM  +9MMMMMMM9-=*""^  *MMMMML


Ross

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,270c219ea9601b45
X-Google-Attributes: gidf996b,public
X-Google-ArrivalTime: 2003-07-02 00:55:58 PST
From: "geo" <geo...@iwishhotmailwasspamfree.com>
Newsgroups: alt.ascii-art
References: <3f0...@news.brisbane.pipenetworks.com> <3f016323$1_...@news.brisbane.pipenetworks.com>    <3f01635b$1_...@news.brisbane.pipenetworks.com> <3f0163fa$1_...@news.brisbane.pipenetworks.com> <Pin...@unix48.andrew.cmu.edu>
Subject: Re: image to ascii text
Date: Wed, 2 Jul 2003 17:55:47 +1000
Lines: 109
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 203.217.84.11
Message-ID: <3f029005$1_...@news.brisbane.pipenetworks.com>
X-Trace: news.brisbane.pipenetworks.com 1057132549 203.217.84.11 (2 Jul 2003 17:55:49 +1000)
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!cox.net!news-xfer.cox.net!green.readfreenews.net!news.readfreenews.net!news-out.visi.com!petbe.visi.com!news1.optus.net.au!optus!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!news.brisbane.pipenetworks.com!not-for-mail
Xref: archiver1.google.com alt.ascii-art:23973
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 2003 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.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post