ASCII Art
Revision as of 16:00, 6 June 2011 by Michael Murtaugh (talk | contribs)
apt-get install python-aalib
import aalib, sys, Image
imgpath = sys.argv[1]
screen = aalib.AsciiScreen(width=80, height=40)
image = Image.open(imgpath).convert('L').resize(screen.virtual_size)
screen.put_image((0, 0), image)
print screen.render()
#XSS2qwXBUYv%s+<>dqw6wmq2om#HH$wac=:;==|i|nYUWQQW$WQQQWmBQmWBQWWBWQWWWmBBWWmQQQQ Z2qpXooo2i+=|aaZW1n2vYwn###ovi>=||=;:;::+=|||{?VTSUQWWBBW#ZWWmmWmWmmWmWmBmW#QWQQ ZoSXXX2!==>{av1XTTTYX#WTY+..."!""!<%|=========|*nSou3vSZVZXA#WWmBBWWWmmBWWBmWWQQ W#oX2ov%%nnZX1|++<loG?.=;<_%|_,._,..+*~=i>==|==+;:==||{SYH$QWWBWWBWmWWWWmWBWWWQQ #ZXXo{vnuvnvI+=::vnS(:i|v%;::::=====|=|===|||==+===::=={uwm#mWWWmmWWBWWmWWWmBQQQ U2XYo2Iov%|i++:.=i%X:=|+: :;:;==v%lvvvvvvlvs%avv|=====+|YWBWWWWWWWWmQWmWBWWBWQQQ #XoooIi>|=~-:+ ;:=v(:|---:===|ivvnoX2XoXSoXo1aaunvvsi==:=)3WWWWWBBBWmWBWWWWmQWQQ #XSZ1>)}+=|=;:}"|=|>=;. .;=||ivnoXXXXXZZZXqomX2ouXS2Xo;==;=lXWBWWWWWBWBWWWWmQWQQ mX1%**=::`:.__;=-=>:::.:==+<svoXZXXZZZSqw#XXnwXXd&SqXXS>::+={S##WWWBWWBWWBWWWWQQ Wnz||is,=;=._|::_=- -::==+|iIo2XXXXmwmZZZYodXmXXSo#Y1i|||:==|{IXZ$WQBWWBWWWmWQQQ 1vs>>=:=|==||=ia+` .:==++vvvSoXXZX22Y1qu#XXXSoZX1l|+iivv>:=|={*mw#mWQmQWmWWWWQQ |%iawu2!3e(v>"' -=|>|ivvSeXoZXXSXXXZ#XXwXX1|<ivdXXXXo>:;;iII####WWBWWWWBQQQ <|2YI>+={1o+ _ .-..._==<v}1ou1XwoZZZXZZZZXZXXonowmZZZXXX#X,:;=|liYXXX#mWBWBWQQQ |uni>>|=ii3;;+,._- .==|%{iv1uSSX2XZXXZXXXo2XoS2Xm#ZZZ1+{i*SX; ==|i%*YoX###WmWWQQ Iiv>|<;=||<-:.:=.;;=<iii{%1SooSS2li|ivooXn2ooXX#Z#X2|==-%IISo,--=i=|=InXZ##WmQQQ |=iii>+||+=::=::=;==|||%vv1****+=+|aommmmXoXXXZZ#SXioZaw|vo#Xo --==<||*A###WQQ i|==||(=|=>-.-::-=;+||ii%|++++|vuoXZZ#Z#Z##ZZXXZooe+){suq##XXZo ...;;+<i%|?9$WWQ l|||i=>|>|..:.:;::==|=i||+=|invoXSZZXXXoXnSnn32ZX1|IvvXXXXX#XZ#c .-:::=|3ns%>2AW vi|i+|=<+:.:.:::;===|||>|ivno2X2***}|**I1ii|iinmXZwunoXX#XXXXXUZc :;:::<=%YoowzY n}ii||>:;::.-::;:===|||i|lo2SS}|<%.-:=%"!+||ilnSX#Z##XXS22SXXZ#ZX;--:===i<=i3#Zo os%|l+=:;==:-::::=;+|=|iivno2c|ioXaa%|i%Ii|ilvnSSXXXZZ#XmXXZ#U###m;:.::||i|l>i3$ 1|}=>==;=:;:;.:.:;==||iiivno2%=+{*IvuXXoovnvvnooo2SXXZZZXZX#U###ZZc:-:;:||ovsvvv 1i>|==|==;.==;...::|+|i|Ilvnnvvno2XXXXX#XvnvononvooXXZZZ##Xu1XX##Zo;-.:.:+*1l3qv 1|==|++|;;:.::.: :-+|||ivvvoonooooXZZZX1ooo21IIIvnXXXX#XZ#2Il?SXZX(.: ;::iwwIXw o%i=<==>::::: .: ...:=||ilvnn222XSXXXSnoS2SSo|<vvv2S2XXXmm#`--==<Xov;.:..:|*SlBh pvi>=|=:==.....- .. -;=|ilvnnoSo2ooXSSSoSXZn>|oSXno2oXXZZ' ..:.:{1=-:.:=||SXQW X|li>||=;=:..... - :+||lvnnn2o2SS2XXXXX2vii|!+---"!!+- ._...<l=-..-::)Y1#B Xvii||===;:.=:... -=||ivvnno2oXXXXXXZ1|===. . ..._/====i|; .::=+nWW mZs|v|+=|==::... . . :==Iivvnno2S2XXXX>==::.. -:=oe" :<vvi>:: . ;||ivd Qm2vi%i|%;;;:;.: . :=|<vv1vvo2XSXX1==:. ._;=_:-"=...=vIni>:. ..:=)2v| WWZzi|<v||=+:==.;.. . ..-:=||lIvvnno2n>=.. .:=|+'_:-;..;|invnv:. ` ..=%nIi Qmwouc|vi<|+:<:: :. . . .-:=||iiInvI|:....;:..:====|ivnzi+|i;. .:-=;=|i| QW#XS}ii%%||=|=:..-_ - ..-===+|ii||=:.:=i||||||ilIv}|` _i|:- ...;:==ivl= Qmov%svvu%i==|=:: . : ..:-;=+|===:;:=|ivIvvIl|=+; =i==. ..:==||{nc; QWmmZm#2n>|><<>=:. .::- -.:-:-:-::==<i|ivlii|>= ==:.. :==::=%o|*1> QQ#mmWTon=Ivil==:. = . .-..- - :-++<|>|<=;:;: -=<|Inoai_ QQQQQeXeniIi|I==:. . : . -. . : :-::.-.:.- . .;+lXXQ#mB QQQQQQWscs=|(>===: :.::.. . ..... -.. ... . ====iinodWm QQQQQQk2oi|+i>><:.::=..<;_:.. . - - ..;: . . ..::+i|vwumQmW QQQQQBdW#Xviii|=|<=_.:||%%===;;.. . -...:-, .:::...: :=;==|<vnmmQWWT
. .. ... . . . ..NMDI=~:~?OMMI .. . . . :NMMMMMN=. . . . .M~. ,MMDDMMMMD?.M= .. . .M+ .,N? .~ ...~M.. .. .M,. NMNMOI$= I. I, :?~I ..MMN..N7.M7$MMMMMMM . M. . M., MMMM... DMNI~?NMMNDMMM .M= . :ZMMMMM,.~~MMMM =M.. ..N..:MMNM7.8N, . ... ... . . .+D..MMM:. M. .$. .MMM. == . . ... ..... ... . ...:M,:MMM. M . ..M ,NMMN M:. ..$M?....:ZM .. . 78 ~M... .. M.MMM ..N .: . MMMM ~. . .D~.. . ,, M.. IZ.. .. .. Z$ . : MMM. $ M. .8MMM.Z. . .. Z..IMMMMMMMMMM. MNM?N8MMMMMMZ..I . N MMM,..I .N. MMMM.=. ,M,.~MMMMMMMMMMMMM....7+ M~MMMMMMN..: . .=.7MMM .M O. 8MM87. . :Z..MNMMMMMMMMMMMMMM . M 8MMMMNMMM N ..: MMM .M D..8MNM,?. . ,O, 8MMMMMMMMMMMMMMMMM . N .Z8MMMMMMMM .8. .O DMMI M .M...MMMM.M. M, MMMMMMMMM?.:D87 ...M . N: .,MMMMMMMI.~. O,MMM. .M .M. ?MMMM..N .. MD.:MMMM, . .. M ZM= 7 . 8 .. DNMM Z. . M MM=. .D : . MMMMMN MMM .+MM8. .. . $MMM7. MM. . MM MM M ..NMMM :...MMMMM + .M ..=MMMM ..MMMM.. MO NM .. . ~ :? .MM. O, MMMMM ~MMMMMM~ M .,=.7NNMMMMMM8MMMM . M?..$. D$ .M...= .MM $ M. ..NMMMMMMMMMM...M. :?,.. MMMMMMMMM. : .. , ?...= M..,8 . . MMMMMMMNM M . ~I O MOMMMMM, I, .MMMMM,+...Z. ..MZMMMM. OMMM?M 7.. M., ...O?..~.Z MM= . = .M. MM: .. . 8MM. OM ,... M , ,M+.. M , . ,8NZD.$ .. .NMM,. .. .8M..$M, . . IMMN= M . . .. . ..I.M7 . .~. .... 8 MM . ...M.N+N. .. ..N. . M. M:: . . NM..~MD+ .M . M . .,M I . M$. M , . ,.M, ... . . .M. IM+. . . .~=MMM . Z8... . I..M . .. MM . IDMM+ N. M..MMM.. . M . =D.. .,M ..MNM? .MD .MD:....: MM.D~. +M .M$..? M~ .MN ...=Z .. . ....+ M M. .MM. . .M,, ..= ... IM.. M. . M .. M. . . IMN.. M= . M, .. M . .. ~M... .MD ..7NM. .~O. . .. .8 .7M MNM .. MM. ..ZMMMMMMM7 , M M$ ... ..~$I... . .M ... . M. M? . ... M.. ~$. =$MM .. . ...... .,=IZ+?M ~$ ... ,M . I ..=NMM$ZMN... . . :I.. MM ZMZ. ., . .M. ..,M. .NO NMMM.. ..M. .. $.. .,MMMMMM... .... .M. .. I. , . MM.MM, . M NM.. ... .:MI.MMM..8MMMM .. . . .M$...MMM MMMMMMN. :,. MNMMM,MMMMMMMM8=.. . = +MMMMMMMMMMMM.. . . MM MM.IMMMN: .. ... .
~~~~===+?I7$D8DDNNNNDMN8Z7I?++=+==+==~~=~~:::::~:::~~~7ZONN8D888O888DDDDDDDDDDDD ~~~~==++?7$8DDNNNNMNMN8ZI7I??+==~:~~::,:::,,:,:,,::~~~+Z$O8NNDOZ8Z8O8DDDDDDDDDDD ~~~=?=I?+IZDNNNMMNMMMD8ZIIII+=~~:::,,,:::::,,,,,,:::==+ZZZDNN88O8D8O888DDDDDDDDD ~~~:=~?+7788NNMMMMMMNND$77II++==:~~~~~~====~~~:,:,,:~==$O8NNDDO888D888DDDDDDDDDD ~~~~===?7ODDDNNMMMN8MN8$III??+=~==+=++?++++??7$7Z7I+~~=+D$DMNN8D8DO8888DDDDDDDDD ~~~~=+?$$D8DMMMMMM8NNNZIII??7ZD878O7$II?IIII$ZZZOZ$$7=~~7N7ZODN8NOD8D88DDDDDDDDD :~~===IIOD88NMMMM8NNN8IIII?7ZOO88O8ZZ$77I77$ZOZZO$?III=~~ZNOZ8DOODDDDD888DDDDDDD ~~=~=+7$8ODNMMMMDNMNM7??II$$77ONNO8O88OI+?Z888D8NNZO8??~~~N8$8O8DNDNDD88DDDDDDDD :~~~+??Z88NNNNMMMNNNDI???777ODNNNNNDDDO+~?$OONODN7$77OI==~788ZO8D8NNDDDDDDDDDDDD ~~~~+I?ODDNNNNMMNNMNZ????I7O7$?8ZI$$$Z7~,:?ZOOZ$7???~:::~~?DND7Z888DDND8DDDDNDDD :~~=I??ODDDDNNNMMNNN$I???IZIII$$$Z888??:,,:7Z$88OOO$?=::::?DNO88$8DNDDDD888DDDDD :~+=+?7ONNNNMMMNMMMN7I??????7IOOOZ$++?==:,,~I?+=+~:.,,,:::~7D8OD8IDN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