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

calibration

Posted by hotel n?r hovedbanegarden on October 15th, 2018, 5:24 pm Reply

The at long mould of a flaccid penis does not of essential exemplify its valuation when erect. Some men whose penis when flaccid is at the wallop absolute rule up of the series may from a unreservedly much larger denote penis than a bloke whose flaccid penis is large. Of execution, penises as time-honoured balk at shrink when chilling or when the bodily beings is unjustifiably anxious. In more than authentication men, the penis may orab.dyrinstinkt.com/godt-liv/hotel-nr-hovedbanegrden.php take on shorter because a toward of its enlarge is concealed in the stout all its base.

Posted by Dennissnush on October 15th, 2018, 1:45 pm Reply

??? ?????????? 25-2500??? ???6, ??? ??????????? ???????????????? ?????????? ??????, ???????????? ??? ?????? ? ?????? ?????? ?? ????? ?????????????????? ?????: - ????? ??????????!

Posted by ThomasVeich on October 13th, 2018, 12:23 pm Reply

Hello. And Bye. Vghrufwiodjowifuegijefqolw

Posted by DebraInsib on October 12th, 2018, 12:51 pm Reply

???? ???? ??????? ???? ??????. ??????????, ??? ? ???? ?? ???? ??????????

Posted by Jamesmeend on October 12th, 2018, 10:53 am Reply

It's going to be finish of mine day, however before finish I am reading this impressive article to improve my experience.

Posted by Stevenmal on October 9th, 2018, 7:41 am Reply

?????, ????? ?????, ??? ????? ???????? ?????, ?????? ???? myvi.gq ???? ?? ????????????? ? ??! ??? ???? ?????????? ? ???????????!

Posted by shpigmaf on October 6th, 2018, 11:40 am Reply

????????? ?????? ????????????? ?? ??????? ??????????: ????????? ?????? ????????????? ???? ??????????? ????????? ?????? ????????????? ???????? ???????? ??? ?? ??????????? ??? ???? ???? ??????????? ??? ???? ???????? ???????? ??????????? ??? 1015 ???? ???????? ?? ?????? ?????? ???????? ??? 7734008581, ???? ?????????? ??? ???????? ??? 7734008581 ???????? ???????? ?? ???????

Posted by XEvilBestasymn on October 6th, 2018, 11:11 am Reply

Yep, fkin spam. Yes, yes, yes, AGAIN. And - yes, IT F*KIN WORKS BECAUSE YOU READ IT! :) Because XEvil 4.0 WAS RELEASED! It's bypass ANY captcha included ReCaptcha-2 and ReCaptcha-3. Neeed more info (just to...maybe kill this Evil? ;))

Just Google or YouTube for it. You'll be impressed.

Peace to you, bro! :)

Posted by MikeElist on October 3rd, 2018, 9:16 am Reply

??????????? ??? ?????? ?????????? ??? ?????? ???????????, ?????, ???????????? ?????? ?? ????? ???? ? ????, 24 ???? ? ?????, 365 ???? ? ????, ??????? ??? ????????? ??????????????. ????? ?? ?????? ???????, ?????? ????????, ?????????? ??????????? ?????-??????????, ??????? ?????? ? ????? ????? ??? ? ????, ????????? ??? ? ????????? ? ???? ?????? ???????, ????????? ????????????? ?????? ????? ? ???????????, ??????????? ? ??????, ?????? ????????? ????? ???????, ???? ?????? ??????????? ???????, ????????? ???????????? ???????????? ? ??????????? ?????? ???????, ?? ???????? ?? ???? ??? ????? ???: ????? ??? ?????, ???????? ????????? ?? ?????-?????? ???????????, ??? ??????? ????? ?????????????? ? ???????, ??? ???????? ? ?????? ?????? (???? ? ????? ???????????? ??????, ????? ??????, ????? ??? ????????? ?? ?????? ????, ?? ????????? ????? ??????????? ? ????????????, ?? ??? ????? ???????????? ? ?????? ??? ? ????????? ? ???? ?????, ??? ??? ???????? ???????, ?? ??????? ????? ? ??????? ??????, ?? ??????????? ???????????????, ?????????????? ? ????????? ? ?????? ? ?????? ???????), ? ????????? ??????????? ?????? ???????????? ? ?????, ???????? ???????? ?? ??? ????? ?? ?????????????, ?? ???????? ??????? ???????????? ? ???????? ???????? ??????? ????? ???? ?????? ? ???????????? ??????. ? ? ???????? ?????, ??? ?? ??????? ??? ?????, ?????? ????????? ? ??? ????? ????? ??? ???? ????, ? ?? ????? ??????, ??? ? ??? ?????????, ??? ? ??? ????????????, ??? ????? ?????????? ? ????????? ????????? – ?? ??????? ?? ???? ?????, ????? ????????? ????????????? ??? ??????, ????????? ??????? ? ?????? ??????????? ?? ????? ???? ??????????????. ? ?????? ?????????????? ???, ????????????? ?????-??????????, ???????? ?????? ? ?.?., ?? ????????? ??? ???? ????? ? ???????? ??????!!!

Posted by MorrisFug on September 18th, 2018, 10:56 pm Reply

??????? ???. ?? ?????? ???????? ??????????? ???????. ???? ? ??????????????. ????? ??????????. ???????? 100%. ??????. ?????????? ?? ????? znakfortune@gmail.com

Posted by MorrisFug on September 18th, 2018, 10:56 pm Reply

??????? ???. ?? ?????? ???????? ??????????? ???????. ???? ? ??????????????. ????? ??????????. ???????? 100%. ??????. ?????????? ?? ????? znakfortune@gmail.com