Skip to content

GIF2ANS

Rowan L edited this page Oct 7, 2026 · 1 revision

The gold standard for "I want this to exist as an ANSI art screen, but drawing it reeks of effort", GIF2ANS was a notorious MS-DOS shortcut for a hacker who was content to put the work in, but only if they got a tool out the other end that could be reused endlessly without additional work. GIF2ANS (short for GIF to ANSI) would interpret high resolution bitmaps of approximately 640x480 resolution in GIF format, divide it up into cells 80 wide by 25 tall, and find an algorithmic "best fit" combination of textmode character shape, foreground and background colour to more or less match the contents of every individual cell. On a cell by cell basis, the results were as close to perfection as you could hope for! But the conversion algorithm was very stupid about the wider context of what was going on in the adjacent cells, so it would ignore outlines, emphasise compression artefacts, and assign two adjacent cells different colours if their hues differed only slightly. Its output, in a nutshell, would satisfy the demands of its program, but human viewers could see it and know instantly that something had gone very wrong with the drawing of this image. (Wronger than they knew -- it wasn't drawn at all!) It was looked down upon by elite underground ANSI artists -- who knew a thing or two about shortcuts -- because it represented a failed experiment that was maybe "good enough" for someone with little access to ANSI illustration expertise, but good enough was absolutely incompatible with eliteness, which was about being literally the best of the best.

That said, the output of this program (and a whole family of similar image conversion algorithms that had the "GIF2ANS" net thrown over them all) did find a use as a crutch among slow starters who had honed their colouring and shading skills, but were hopeless at drawing outlines and understanding basic proportions and anatomy. (This is controversial, but the history of fine art, Renaissance and Dutch masters is full of reinventions of the grid method and camera obscura, so it's hardly without precedent. Moebius has a transparency tracing mode and Cthulu's entire ANSI career has been riding on it!) It could be used to generate a "colouring book" page for weak artists to attempt to gussy up and come up with something they could pretend they'd made from scratch. (This was a hard act to keep up for several reasons, not least being that if the source images weren't prepared properly, the output could be subject to subtle offputting distortions, telegraphing that something just wasn't right with this screen.) Some GIF2ANS practitioners would pretend to be talented only at drawing outlines, and then would launder their conversions through other, gullible artists who would diligently redeem the fraudulent starting material.

As with aalib, image conversion is an intellectual challenge many programmers can't resist revisiting whether it solves a problem anyone wants solved or not. Grymmjack has tried to improve on GIF2ANS with IMG2ANS. Sudden Death of CiA has paired it with AI technology in REZ2ANS. [Stylus] offers 36 different automated conversion algorithms to choose from! Someday programs will be able to draw ANSI art that doesn't suck -- but will using them ever not be lame?

Clone this wiki locally