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 February 5th, 2018, 3:51 pm Reply

Nicely put. Many thanks! cialismsnntx.com cialis safety

Posted by Anonymous on February 4th, 2018, 3:15 pm Reply

Very good content, Thanks a lot! cialismsnntx.com canadian pharmacies top best

Posted by Anonymous on December 9th, 2017, 10:30 pm Reply

????????? ??????? ????? (Avito) ?? 50% | ????????? @a1garant

??????????? ???, ??????? ??????!

?????? ???????????? ???? ??? ?????? ?? ?????????? ??????? ?? ??????????? ???????? ???????? Avito (? ?????, ?????????? ?????). ???? ??? ???? ???????????? ??????? - ??????, ????? ??????. ????????? ????? ?? ????? ???????, ????? ??????? ?????? ????? (Avito).

???????? ?? ????. ????? ?????.

??????? ?????????? ? ???? ??????? ? ????????? ??????? ?????????: 50% ?? ??????? ?? ????????. ???? ????????? ????? ?? ??? ???????, ? ???? ?????? ????????? ????? ? ?????? ?????? ???? ??? ??????? ? ????? ??????, ?????????? ???????. ??? ?????????? ?????????? ?????? ??????? ??????? ? ??????!


?, ??????? ?? ????? ?? ????????? ???????, ??? - ??????????!!! ?????? ????? ?? ??????...

???? ??????????????!

?????? ?? ??????? ?????

??????? ??????? ????? ?? avito ???????????? ??????? ??? ????? ????????? ??????? ?? ????? ?? ????? ?????? ????? ????? ??? ???????? ????? ?? ?????????? ?????? ????????? ??? ?????? ?? ????? ???

Posted by Anonymous on November 27th, 2017, 7:51 pm Reply

Writing a medical thesis or dissertation is a task done by almost all postgraduate and master's medical students. Dissertation is derived from the Latin word disserto which means discuss. It is essential to write successful medical papers such as medicine essays and medical thesis papers. There are several reasons as to why students write medicine essays. One of the reasons is to promote enhancement of critical judgment, research skills as well as analytical skills. Moreover, medicine essay writing produce students with the ability to 4evaluate and analyze data critically.

The initial step for writing medicine essays is to choose a topic. A writer should have at least three topics to choose from. The topic has to be interesting, feasible and relevant. It is essential to write quality medicine essay. Hence, students need to have analytical skills and perfect writing skills. The writing skills will enable them write outstanding essay papers that can be highly regarded by instructors and professors. Teachers often require a lot and expect a lot from their students in terms of medicine essay writing. for this reason, students find essay writing to be an extremely difficult task and hence resort to buying custom medicine essays.

A custom medicine essay has to be written by professional writers who are qualified in the field of nursing. Moreover, the custom medicine essay has to be original and plagiarism free. This means that it has to be written from scratch by experts with many years experience. The many years experience should enable a writer to write any form of medical paper including medical thesis, medicine essay and even medicine research paper. Moreover, experience will enable a writer to write a medicine essay that can guarantee academic success.

Students get custom medicine essays from custom writing company. It is essential to choose the best company so that one can get the best custom medicine essay. The best and the most reliable medicine essay writing company should have some unique characteristics such as affordability and the ability to provide original and superior quality medicine essays. The other quality is that the company has to hire expert writers who can write quality medicine essays and other types of medical papers. The essays should not only be quality but also plagiarism free and free of grammatical and spelling mistakes.

A custom medicine essay has a similar structure to any other academic essay assignment. It has an introduction that introduces the topic and tells the reader what the essay is all about. The second section is the body that has many paragraphs supporting the main topic. Finally there is the conclusion that briefly summarizes what has been discussed in the body section of the essay. Students should choose reliable writing companies so that they can get quality custom papers on several fields such as technology, sociology and law in addition to medicine field.

Our custom writing company is the best company that all clients should rely on when in need of any given type of medicine paper. We provide quality papers that not only plagiarism free but also original. Moreover, our custom papers are affordable and able to guarantee academic excellence at all times. All our medical papers are reliable and sure of satisfying clients at all times.


Posted by Anonymous on November 17th, 2017, 3:47 pm Reply

??????? ?????????. ??????????? ????????-??????????? ?????? ??? ??????????? ? ???????? ? ????? ?????! ???? ????????? ??? ??? ??????????? ? ????????? ?????????? ? ????????. ?????? ? ICQ 656310373

Posted by Anonymous on November 8th, 2017, 7:00 am Reply

Wonderful write ups, Thanks. canadianpharmaciesbnt.com costco pharmacy pricing

Posted by Anonymous on September 23rd, 2017, 9:54 am Reply

???????????????????????? ????? ??? ??????, ??????? ?????, ????? ??? ???

Posted by Anonymous on September 11th, 2017, 8:33 am Reply

???????????????????????? ??????????? ?????, ??????? ?????, ????? ??? ???

Posted by I fixed that issue. Another thing. Is there a way to implement prennetivg large downloads from timing out? I have multiple 400+ MB files and they are all timing out. If I do direct link they always complete. Any help would be appreciated. Def willin on February 21st, 2016, 8:09 am Reply

I fixed that issue. Another thing. Is there a way to implement prennetivg large downloads from timing out? I have multiple 400+ MB files and they are all timing out. If I do direct link they always complete. Any help would be appreciated. Def willing to donate if I can get this last issue resolved