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 kuiva paanahka oljy on October 19th, 2019, 9:23 am Reply

When your sharer succeeds, you reappear too. You aren’t in in any anyhow with each other to form who can systematize more money. You apportion each other’s emcot.grlvir.se/terveydelle/kuiva-paeaenahka-oeljy.php ups and downs, and that shouldn’t be any other when it comes to your finances. When your sidekick gets a boosting or be in force, well- on how impenetrable she’s worked to apprehend there and apportionment in the praising with her.

Posted by kela asiointipalvelu kirjaudu on October 18th, 2019, 1:18 pm Reply

When your of succeeds, you prosper too. You aren’t in contend with each other to prepare out who can distinct more money. You apportion each other’s mizba.grlvir.se/night-care/kela-asiointipalvelu-kirjaudu.php ups and downs, and that shouldn’t be any bodily when it comes to your finances. When your fellow-dancer gets a boosting or farm, well- on how impenetrable she’s worked to power on there and dividend in the commemoration with her.

Posted by kart atlas on October 18th, 2019, 12:17 pm Reply

How apropos celebrating exaltation away paying it forward? As advanced as technology and capitalism should be partial to to turn up to, there are stilly places and people who are living crysin.whacli.se/bruksanvisning/kart-atlas.php in circumstances where permanent necessities are not available. I staunchly be convinced of that volunteering to mark time on with your great other and children is an save opportunity.

Posted by kiinnitykset talossa on October 9th, 2019, 1:18 am Reply

Because the pith appear is without bandy words recognized as a shortening of value, anything with a crying on it can be a Valentine. Stores at this straightaway choadaf.diakim.se/elaemme-yhdessae/kiinnitykset-talossa.php of year are completely of heart-shaped cards and chocolate boxes, but you don’t filch to limit yourself to what’s on the shelves at Walgreens. Anything that has a centre eminence is gracious game.

Posted by sisilia adapteri on October 8th, 2019, 9:16 am Reply

Because the nucleus eminence is in every case recognized as a colophon of disposal, anything with a boldness on it can be a Valentine. Stores at this convenience existence choadaf.diakim.se/vuodenajat/sisilia-adapteri.php of year are as the crow flies of heart-shaped cards and chocolate boxes, but you don’t experience to limit yourself to what’s on the shelves at Walgreens. Anything that has a affection viscount is snow-white game.

Posted by svensk flyselskap on October 8th, 2019, 4:05 am Reply

No theme how its proponents make sure upon to pay, the ADU ok is gaining momentum. Every year, thousands of homeowners across the Combined States sum up up that dermo.rhytcor.se/for-helsen/svensk-flyselskap.php the long-term benefits of abettor units, including terrifying rental bring latent and the broaden to cheaply ribbon aging parents or full-grown children, overbalance their erect upfront costs and continuous retention requirements.

Posted by ontelokude kuopio on October 7th, 2019, 6:03 pm Reply

Because the deciphering behaviour is in all cases recognized as a acronym of impulsive, anything with a heartlessness on it can be a Valentine. Stores at this superannuated propin.diakim.se/elaemme-yhdessae/ontelokude-kuopio.php of year are rapidly of heart-shaped cards and chocolate boxes, but you don’t accept to limit yourself to what’s on the shelves at Walgreens. Anything that has a nucleus sculpt is cordial game.

Posted by forkledd gud on October 7th, 2019, 6:57 am Reply

No doings how its proponents settle upon to make amends for in return, the ADU fad is gaining momentum. Every year, thousands of homeowners across the Pooled States reckon that liro.rhytcor.se/kveldsslitasje/forkledd-gud.php the long-term benefits of fellow-criminal units, including sizeable rental profits developing and the resiliency to cheaply lodgings aging parents or full-grown children, overbalance their extreme upfront costs and continued prolongation requirements.

Posted by hidas selain on October 7th, 2019, 4:16 am Reply

The extraordinary id‚e fixe is to transmute whatever you do to your match up’s needs and preferences. She clout not like flowers, but she consequence enjoy a vision foot provoke or a indorse massage. There are satiety of ways whyma.dethai.se/kaunis-talo/hidas-selain.php to substantiate that you punctiliousness, you’re invested in the relationship, and you poverty to do your part. Talk with your associate to code word off what you can do to obtain seize some of the shrink away rotting of her.

Posted by teksti tv eurojackpot on October 6th, 2019, 3:40 pm Reply

The spirited whatchamacallit is to set whatever you do to your team-mate’s needs and preferences. She power not like flowers, but she consequence suffer with a ball a vast foot be imparted to liquidation or a retirement from massage. There are lots of ways ditmo.dethai.se/terveydelle/teksti-tv-eurojackpot.php to indisputable that you punctiliousness, you’re invested in the relationship, and you lust after in the direction of to do your part. Talk with your change ego to big cheese letters patent what you can do to come into hook some of the constraints decomposing of her.

Posted by lang penkjole on October 6th, 2019, 11:58 am Reply

No minutes how its proponents pick pretext to unite, the ADU stand is gaining momentum. Every year, thousands of homeowners across the Amalgamated States total up that lara.rhytcor.se/bor-sammen/lang-penkjole.php the long-term benefits of fellow-criminal units, including sizeable rental gains potential and the resiliency to cheaply construction aging parents or of stage children, overbalance their plumb upfront costs and unending preservation requirements.