Url2Ascii (Color)

Written 11:18 am 3/29/2013 Modifed 04:15 pm 4/4/2013
Kim Jong Un approves.

I made a utility a while ago to convert images to ascii, for covert reddit browsing ability. I recently added color to it.

The script gives you a number of customizations- you can change the x / y ratio for your glyphs, which characters get printed out, and at what brightness, and you can calibrate the colors to match your terminal. This is specifically for 8 color terminals

The inner workings have it resampling the image to your indicated terminal size. It then converts each box into its HSV values. It tries to best match the HSV by changing the glyph, the foreground color, and the background color. You can check the code if you're interested

View on Github

Run this in the shell:

curl -Ls https://gist.github.com/oranj/5271841/raw/url2ascii.php | php -- http://oranj.io/uploads/misc/url2ascii/flower_2.jpg

Or if you want to select your own image (This script is mac only):

file=`osascript -e 'tell app (path to frontmost application as Unicode text) to set new_file to POSIX path of (choose file with prompt "Select A File" of type {"PNG", "JPG", "JPEG"})'  2> /dev/null`; curl -Ls https://gist.github.com/oranj/5271841/raw/url2ascii.php | php -- "$file"

input output

Using a screen color grabber (like DigitalColor Meter, should come on macs), you can figure out what your terminal's colors are using the calibration function, calling

url2ascii calibrate


Posted by Anonymous on May 23rd, 2018, 11:13 pm Reply

????????????. ???????? ?????????? ??? ???? ?????? ? ??????????? ?????? ????? ? ???. ?????, ???????? ??? ?????????, ??? ?????????? ?? ?? ??????? ??? ?????. ???? ?????????, ???????? ?????? ????? ??? ?? ??????????? ????? proxrum***mail.ru ?????? ? ????? "??????????? ????? ????????" (?????? *** ????????? @). ? ??? ??? ?????? ? ????????. ? ?????????!

Posted by Anonymous on May 21st, 2018, 3:18 pm Reply

buy viagra hard_linux@mail.ru adult porno

Posted by Anonymous on May 21st, 2018, 10:44 am Reply

Incredible update of captchas breaking software "XRumer 16.0 + XEvil 4.0": captcha regignizing of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex, and more than 8400 another size-types of captchas, with highest precision (80..100%) and highest speed (100 img per second). You can use XEvil 4.0 with any most popular SEO/SMM programms: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

Interested? There are a lot of demo videos about XEvil in YouTube.


Good luck!

Posted by Anonymous on May 19th, 2018, 2:58 am Reply

adult porno hard_linux@mail.ru buy viagra

Posted by Anonymous on May 2nd, 2018, 3:49 pm Reply

Nicely put, Thank you!

Posted by Anonymous on April 19th, 2018, 6:41 pm Reply

You must just look for several specialised guides online. There is a lot of different productive info on the cobweb hp omni 100 pc 5205la driver wifi fujitsu today really. I can also recommend you to judge not at home. It is a chilliness predilection indeed.

Posted by Anonymous on March 22nd, 2018, 10:52 pm Reply

Superb blog! Do you have any tips and hints for aspiring writers? I'm hoping to start my own blog soon but I'm a little lost on everything. Would you propose starting with a free platform like Wordpress or go for a paid option? There are so many choices out there that I'm totally confused .. Any suggestions? Thanks!

Posted by Anonymous on March 22nd, 2018, 7:44 am Reply

Heya i'm for the first time here. I came across this board and I find It really useful & it helped me out much. I hope to give something back and aid others like you aided me.

Posted by Anonymous on March 21st, 2018, 11:23 pm Reply

This message is posted here using XRumer + XEvil 4.0

XEvil 4.0 is a revolutionary application that can break almost any antibot protection. Captcha Bypass Google (ReCaptcha-1, ReCaptcha-2), Facebook, BING, Hotmail, Yahoo, Yandex, VKontakte, Captcha Com - and over 8400 other types!

You read this - it means it works! ;) Details on the official website of XEvil, there is a free demo version.

Check YouTube video "XEvil ReCaptcha2"

Posted by Anonymous on March 21st, 2018, 1:37 am Reply

Your style is very unique in comparison to other folks I've read stuff from. I appreciate you for posting when you have the opportunity, Guess I will just book mark this web site.

Posted by Anonymous on March 19th, 2018, 11:25 pm Reply

Yes! Finally someone writes about %keyword1%.