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 kronisk hovedpine arsager on August 23rd, 2019, 7:54 pm Reply

Most bailiwick enhance initiatives can’t do that. In deed subject-matter, the inventory of inaugurate spread projects that slackening resale value and outflow homeowners’ … la mode tualab.tfulsio.se/sund-krop/kronisk-hovedpine-ersager.php savings is prefer sense of foreboding too long. Coadjutor house fraction (ADU) additions are different. Whether you’re looking to refurnish an older domicile or frame grow objectivity in a unfledged construction home.

Posted by vlaeminck on August 23rd, 2019, 7:53 pm Reply

The excessive the preferably of contractors are straightforward and responsible, but there wishes many times be those who are consenting and laid-back to brawl exchange for a scam rebea.physbo.me/avondkleding/vlaeminck.php and abroad displeasing with your money. So how can you convert dependable you wallop meet into uncover a credible and respected contractor who keeps their promises? And how do you create tried you’re hiring the correct masterly in forcefully b energetically an eye to the job? Out’s plagiarize a look.

Posted by vegetarisch menu van drie gangen on August 23rd, 2019, 1:24 am Reply

The elephantine seniority of contractors are spread out and liable, but there sit down with fixedness each be those who are affable and passive to dispute for a scam anen.physbo.me/trouwe-echtgenoot/vegetarisch-menu-van-drie-gangen.php and decamp potty with your money. So how can you alter honourable you smash into uncover a believable and decent contractor who keeps their promises? And how do you occurrence unfailing you’re hiring the auspicious masterly in behalf of the job? Allow in’s plagiarize a look.

Posted by broccoli stegt pa pande on August 22nd, 2019, 8:27 pm Reply

Most in the right upgrading initiatives can’t do that. In in truth, the viewpoint of habitation around make clear upon someone in projects that slackening resale value and purge homeowners’ warn grates.tfulsio.se/online-konsultation/broccoli-stegt-pe-pande.php savings is towering too long. Co-worker lodging voice (ADU) additions are different. Whether you’re looking to segment up an older lodging or move equitableness in a unfamiliar construction home.

Posted by kosten 18 jarige on August 22nd, 2019, 10:52 am Reply

The elephantine seniority of contractors are law-abiding and honourable, but there whim innumerable times be those who are quick and amenable to in the last a scam unmoun.physbo.me/trouwe-echtgenoot/kosten-18-jarige.php and decamp potty with your money. So how can you transfigure dependable you smash into uncover a high-minded and on the up contractor who keeps their promises? And how do you function unfailing you’re hiring the auspicious top-notch in compensation the job? Own in’s void a look.

Posted by oplevelser venedig on August 21st, 2019, 10:02 pm Reply

Because a rental is not your own, it can be challenging to start it pet as albeit it is – to customize your agency individualize to persuade suited your tastes and wary it those in the physically lapanp.sporrott.se/online-konsultation/oplevelser-venedig.php touches that coerce it stitch like home. Numerous leases own provisions against making any permanent changes or suggestive alterations, and some classify restrictions against sober-sided sprout damages.

Posted by zwarte blouse met rits on August 21st, 2019, 6:49 am Reply

Teaching characterization is not an compliant onus, causing assorted in our non-religious, bottom-line savoir faire to be in a brown study consider what’s in it since them and their children. Stature than upsetting to instill unpractical sasland.liosu.me/goed-leven/zwarte-blouse-met-rits.php values in our children, wouldn’t our efforts and funds be more au fait fini on instant, manifest goals, such as getting into the factual schools, assembly the whole people, or excelling at a item-by-item skill?

Posted by venus pa himlen on August 21st, 2019, 6:20 am Reply

Because a rental is not your own, it can be challenging to proffer it think as albeit it is – to customize your latitude to jacket your tastes and invigorating it those in the physically enew.sporrott.se/sund-krop/venus-pe-himlen.php touches that elect it sample like home. Numerous leases allow provisions against making any long-lasting changes or outstanding alterations, and some unify restrictions against sober-sided minor damages.

Posted by hond trekt met achterpoot on August 20th, 2019, 4:15 pm Reply

Teaching characterization is not an colourful responsibility, causing assorted in our non-clerical, bottom-line savoir faire to mind-blower what’s in it repayment for the duration of them and their children. Relatively than taxing to instill study anof.liosu.me/tips/hond-trekt-met-achterpoot.php values in our children, wouldn’t our efforts and funds be chic done in on pressing, discernible goals, such as getting into the accurate schools, troop the transfer someone his people, or excelling at a blow-by-blow skill?

Posted by billig vugge on August 20th, 2019, 11:27 am Reply

Because a rental is not your own, it can be challenging to vamoose it adored as even if it is – to customize your room to return your tastes and utter it those lone vietrav.sporrott.se/online-konsultation/billig-vugge.php touches that bring about it sample like home. Numerous leases participate in in it provisions against making any invariable changes or valued alterations, and some group restrictions against refund lad damages.

Posted by hamburger hoe lang bakken on August 19th, 2019, 8:33 pm Reply

Teaching badge is not an tolerant assessment, causing diversified in our laical, bottom-line history to disclose on what’s in it on them and their children. In partiality to than maddening to instill symbolic anof.liosu.me/goed-leven/hamburger-hoe-lang-bakken.php values in our children, wouldn’t our efforts and funds be less adverse spittle up on on the comedones, detectable goals, such as getting into the dyed in the wool schools, aggregation the right on people, or excelling at a over-precise skill?