这是个小工具,将图片转换为assic字符
使用:
-s
指定缩放比例
-x
指定宽度缩放比例,覆盖-s
-y
指定高度缩放比例,覆盖-s
bin/img2ascii path/to/img -s 10
bin/img2ascii path/to/img -s 10 -x 5
bin/img2ascii path/to/img -s 10 -y 20
向下面这样
nmnM9@B0M08BB08@mmmM9q98@@0809MMmNB000M8BB8Nnrtttn
MBMNN9BN0B9n9Mns7i:i i : :i iriipM@9N9mmpqptronn
qMnopon9nrvr: . ... ... : ,, , :vtsqsM09Nnm
n0Mrommri .. . .. .. ii ir:r : :rrptnm98
08880p:.. .. .. ... . ,:isrviiii7riv; , ,:iit
B@8@n:. . . . .... ::irsrtqprsvri: i i :
0B@7,,.. . . .. . , , ,, ,:ivoooorporsqoivviriv
90 . .. . ,,,, ,, ,,,,, :ivmmnntosnmmnmnnnmmM
n ., ., ,, ,, , ,, , , ,:ivm9mnmmmmN9MMNNN000
ni ,, i ,,,,, ii: i ii0N9N9090090908888@
9i ii:r7 .. irrr:rqririir70BB900B9N9M0@B8880
M0oi:ir,. .. ..... ii:::::::rrm8089MMnos808B0B80
M99nii;. iiiprr: ,,, : , ::ii7pnms7iiipN0808088
90Nmqo ,n80B9Nr , ,,, , :: ii:i i;riir09BBBMN
0mmss;.,r9BNn7i:: ,, :: ::: ii i rr:iivqnM9momN
0N0toi :iprtsri::::::::::: i i i ::i:riiqmN9oo7
8Nm0Mnvivir77ri i ii i ii i irr rir:r::: riv7tvii
iiiiri7vvvr :: i ri: i i:i:r: r ii i r:ir;:rr iiv
riiiiiiiviririv i i rrii: iiii i i i :rr:::rri
ii7ii7ivrri:ivir :i i i i ii i i i i i : ii:
: iiii:iiiiiqsmM9M@9qtossrntNMmnnM900B@BBB0@8BB@0@BMprpontpp
:i r :iirrrm0@8NMBnttptponm0Mnmmnn@B880@@888BB8BBB8nsqorpor
:ri:i r:iiiisqnmno9mopsqsqonnnnnnmN8088808B8B@B080B8svi7tsqs
iii ii ir:;7tmnMMmMmotr7rvrmM0B88Mn9B8B@88@8@B@8B@B8tppsnnmr
i iii:rirqspmrrmntqppptoNnM9ioqnN08B0888BBB08B0MNsiiiirr7
::::::i i:isnMM0n9nstipM0BMri , , rNB000B88@080B@ppsrorqo
::: ::: iii ittqrtnnstpBB8ni, ... ,, i9880800080nmmiriivrii
: i :vnn00mMnptM808i , .. ,: t9NMB0000BB80prvrv7sv
, ,, ,:i i irqsotqnps80Bq ,,,,:: ::iiM000088BN0mntv7i7vri
, ,,:::: imn0Mmmtsnrrn7, r , vii8NN8B88808NMiiivivrr
,, ,,,:::: iv7orqrNstr i , . , :09B000809MMNr77i7iii
,, , ::: 7nmn9rnmqoqi ,,, ... , : . i888@0@0B00mnri;rr;7i
, , , :: iiooqn0rm0Mii:,,,.. ,, : :t00@0N0080NMNpiivii v
, ,, : :vnmn9snmpm98Mmri,, . : iM00BBB88B0ntpv ir :r
,, , :::rrpsopmMpM0@08ri7;: .. vB9nm0BN808M0mmtvivivi
:::mnmntm9rsq0r;:: iii;rtB80B0npm88B8mrooi; : rr
, iiitpomNni . ... rv8000900B0N8000009svi:;ivr
, ,, , rmmmmqnmm0N: . .. ,: 008MmB8B0N88Mmrporv;r:rr;
, , , iiqtsppmt; : .... ,, iqnp008008800mmqi; ;vi
, , :qnii,.., ,,, ,,.... ,:rr9B00nimNnmrtsiiiii r
. .. ri ... .. ,,.. . ,, 7n08BMi Bmmprvrr :;i;
.. . , , p,,.. ..... , . . ..irinB0Bsio09Nmpii;;;ir
.. . .. , , mi, . ... . ,... ..:n9rvq@8pimtsrr r::::i
.. ...,, ,, tpi,,. .. . .. . ... ..i0, p@nn00Mntviirir
. .. . , ,in0ni ,, .. ... ,, .. ,. ii ::vm8nsrii r;:v
.. . . , rtmmi ,,..... . . . . ... ,7Bnmp7v: iir
. ... , , mMM9m i: .. .... ,.. ,.... . snoii r:r
....... , iimnmmq , .. ., . . . ..,rnrrii:::i:
. . . ,,, m00Mm0i::i:,, .. . . ,,... .,qmmt7i rri
.. . ,,, ip999n90i ,:,,,,. .. ... . .. . imqp7;ir:ir
. .. ... , iq990n99r,. .. : . . , .. 0imMmsirvit7
.... ., ,,ipN0M0900i .. ,i: , .. . 7v:iii rr rvi
... p0M9mMN09 . . , ,:: ,,,,, ,. . ii,rBMoq7ivtr
. ....., ,, s08009@0No,. .. . ,, ::: . ,i:,:rir :;ivi
.... , ,ipNMNn0M9N9 . ... . ,, . . . i :mviir:ir
... . ..,,, ir0NM9N@@88i . . . ... . .: 7iir ii:
... . , in99n9NN09v .. . . .. . .:i,, , pii rivr
.. , , ioBB80M0@BN,.. . .. . . . ,i, io7iiiiii
.. . , , iNNMnNMNN: . ... . ... . . , ,isrr ;iri
.... . , t088N08B;. .... . . ... . , :tmrq7iro7
... . ,, v9NNMMBn,.... .. . ...... , .. ,:oi: ;riv:
.. . . , ii000999 ,. .. . . .. ,.. immssvqvpi
.. .. ,,:i009N9M, .. .. .. .... , ,,rq7: irioi
. . . .,, :iN9NN9r. . . . .. .., , sm9priirri
... . , v80B0v . .. . .. .. .. , r7v:ririqi
. . .. ,,,, r0MM7 ,.... ... . ::::: , 7oprsviir
.. .. .,, , :00B . . . ... , ,. , ,iiir iirii
, .... ,,,,::09i,,. . . . . : , , ,, , ::irri ;r:
,, . . , qs .. . . . , :: ::: : : iivi7p7
, ,, . , Nr . .. . . , :: :: : : , ., vi:iir ii
, , , , ,,: 0i,.. . .. . , ::: ::: : ...,:t7v7irsp7
, , ,, :rmv .... . ., ,,, ,, .... . . po7rriior
,, ,, ::ir , .. . . . .. . rnppptspr
,, , , :::: i.,.... . . . ... .... . .. iiirivsq