jp2a

converts JPEG images to ASCII art

TLDR

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

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.

INSTALL

sudo apt install jp2a
sudo pacman -S jp2a
sudo zypper install jp2a
brew install jp2a
nix profile install nixpkgs#jp2a

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), cacaview(1)