From d595e5af20e07d22f9cd8be2a261a3208c71067b Mon Sep 17 00:00:00 2001 From: Sahil Dhiman <52946452+sahilister@users.noreply.github.com> Date: Mon, 5 Oct 2020 12:13:34 +0000 Subject: [PATCH] jp2a: add page (#4357) --- pages/common/jp2a.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/jp2a.md diff --git a/pages/common/jp2a.md b/pages/common/jp2a.md new file mode 100644 index 0000000000..76a037fd75 --- /dev/null +++ b/pages/common/jp2a.md @@ -0,0 +1,28 @@ +# jp2a + +> Convert JPEG images to ASCII. +> More information: . + +- Read JPEG image from a file and print in ASCII: + +`jp2a {{path/to/image.jpeg}}` + +- Read JPEG image from a URL and print in ASCII: + +`jp2a {{www.example.com/image.jpeg}}` + +- Colorize the ASCII output: + +`jp2a --colors {{path/to/image.jpeg}}` + +- Specify characters to be used for the ASCII output: + +`jp2a --chars='{{..-ooxx@@}}' {{path/to/image.jpeg}}` + +- Write the ASCII output into a file: + +`jp2a --output={{path/to/output_file.txt}} {{path/to/image.jpeg}}` + +- Write the ASCII output in HTML file format, suitable for viewing in web browsers: + +`jp2a --html --output={{path/to/output_file.html}} {{path/to/image.jpeg}}`