Introducing 'ransid' - a simple image to ANSI converter

ransid

ransid converts images to ANSI text which can be displayed in the console.

Why?

  • Because.
  • R pranks!

Note to be confused with:

Installation

You can install ransid from github with:

# install.packages('remotes')
remotes::install_github("coolbutuseless/ransid")

Example

Note - because ANSI is for display in a terminal, it does not render in a markdown document. The following images are screenshots of my Rstudio terminal

im <- image_read(system.file('img', 'Rlogo.png', package = 'png'))
cat(im2ansi(im, width = 120))

im <- magick::image_read('https://www.fillmurray.com/300/250')
cat(im2ansi(im, width = 120))

im <- magick::image_read('https://placekitten.com/300/200')
cat(im2ansi(im, width = 120))