1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

jp2a: add page (#4357)

This commit is contained in:
Sahil Dhiman 2020-10-05 12:13:34 +00:00 committed by GitHub
parent 4f73077e68
commit d595e5af20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
pages/common/jp2a.md Normal file
View file

@ -0,0 +1,28 @@
# jp2a
> Convert JPEG images to ASCII.
> More information: <https://csl.name/jp2a/>.
- 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}}`