HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

asciiart — Convert images to ASCII. More information: <https://github.com/nodanaonlyzuul/asciiart#in-the-comman

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandimagesasciiconvertcliinformationasciiartmore
linux

Problem

How to use the asciiart command: Convert images to ASCII. More information: <https://github.com/nodanaonlyzuul/asciiart#in-the-command-line>.

Solution

asciiart — Convert images to ASCII. More information: <https://github.com/nodanaonlyzuul/asciiart#in-the-command-line>.

Read an image from a file and print in ASCII:
asciiart {{path/to/image.jpg}}


Read an image from a URL and print in ASCII:
asciiart {{www.example.com/image.jpg}}


Choose the output width (default is 100):
asciiart {{[-w|--width]}} {{50}} {{path/to/image.jpg}}


Colorize the ASCII output:
asciiart {{[-c|--color]}} {{path/to/image.jpg}}


Choose the output format (default format is text):
asciiart {{[-f|--format]}} {{text|html}} {{path/to/image.jpg}}


Invert the character map:
asciiart {{[-i|--invert-chars]}} {{path/to/image.jpg}}

Code Snippets

Read an image from a file and print in ASCII

asciiart {{path/to/image.jpg}}

Read an image from a URL and print in ASCII

asciiart {{www.example.com/image.jpg}}

Choose the output width (default is 100)

asciiart {{[-w|--width]}} {{50}} {{path/to/image.jpg}}

Colorize the ASCII output

asciiart {{[-c|--color]}} {{path/to/image.jpg}}

Choose the output format (default format is text)

asciiart {{[-f|--format]}} {{text|html}} {{path/to/image.jpg}}

Context

tldr-pages: linux/asciiart

Revisions (0)

No revisions yet.