LinuxCommandLibrary

jp2a

converts JPEG images to ASCII art

TLDR

Convert image to ASCII

$ jp2a [image.jpg]
copy
Set output width
$ jp2a --width=[80] [image.jpg]
copy
Colored ASCII
$ jp2a --colors [image.jpg]
copy
Invert colors
$ jp2a --invert [image.jpg]
copy
Custom characters
$ jp2a --chars="[.:-=+*#%@]" [image.jpg]
copy
Output to file
$ jp2a [image.jpg] --output=[output.txt]
copy

SYNOPSIS

jp2a [options] file...

DESCRIPTION

jp2a converts JPEG images to ASCII art. It maps pixel brightness to characters for text-based display.
The tool supports color output for terminals. It can process multiple images and URLs.

PARAMETERS

FILE

Image file(s) to convert.
--width N
Output width in characters.
--height N
Output height.
--colors
Use ANSI colors.
--invert
Invert brightness.
--chars STRING
Character ramp to use.
--output FILE
Output file.
--help
Display help information.

CAVEATS

JPEG input required. Terminal width affects output. Aspect ratio considerations.

HISTORY

jp2a was created to convert JPEG images to ASCII art for terminal display and text-based image representation.

SEE ALSO

img2txt(1), aalib(3), cacaview(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community