OS Manuals

/usr/bin/jp2a

convert JPEG, PNG, and WebP images to ASCII art

From jp2a 1.3.3-r3 (os), captured 2026-11-05 by running jp2a --help (exit 0). permalink

jp2a 1.3.3
Copyright 2006-2016 Christian Stigen Larsen
and 2020-2024 Christoph Raitzig
Distributed under the GNU General Public License (GPL) v2.

Usage: jp2a [ options ] [ file(s) | URL(s) ]

Convert files or URLs from JPEG/PNG/WebP format to ASCII.

OPTIONS
  -                 Read images from standard input.
      --blue=N.N    Set RGB to grayscale conversion weight, default is 0.1145
  -b, --border      Print a border around the output image.
      --chars=...   Select character palette used to paint the image.
                    Leftmost character corresponds to black pixel, right-
                    most to white.  Minimum two characters must be specified.
      --clear       Clears screen before drawing each output image.
      --colors      Use true colors or, if true color is not supported, ANSI
                    in output.
      --color-depth=N   Use a specific color-depth for terminal output. Valid
                        values are: 4 (for ANSI), 8 (for 256 color palette)
                        and 24 (for truecolor or 24-bit color).
  -d, --debug       Print additional debug information.
      --edge-threshold=N.N   Image gradient above which to shade lines and edges with directional glyphs (such as -/|\).
      --edges-only  Only draw edges - make sure you use it with the edge-threshold option so edges are drawn.
      --fill        When used with --color and/or --htmlls or --xhtml, color
                    each character's background.
  -x, --flipx       Flip image in X direction.
  -y, --flipy       Flip image in Y direction.
  -f, --term-fit    Use the largest image dimension that fits in your terminal
                    display with correct aspect ratio.
      --term-height Use terminal display height.
      --term-width  Use terminal display width.
  -z, --term-zoom   Use terminal display dimension for output.
  -c, --term-center Center image in terminal.
      --grayscale   Convert image to grayscale when using --htmlls or --xhtml
                    or --colors
      --green=N.N   Set RGB to grayscale conversion weight, default is 0.5866
      --height=N    Set output height, calculate width from aspect ratio.
  -h, --help        Print program help.
      --htmlls      Produce HTML (Living Standard) output.
      --html        Produce strict XHTML 1.0 output (will produce HTML output
                    from version 2.0.0 onward).
      --xhtml       Produce strict XHTML 1.0 output.
      --html-fill   Same as --fill (will be phased out).
      --html-fontsize=N   Set fontsize to N pt, default is 4.
      --html-no-bold      Do not use bold characters with HTML output
      --html-raw    Output raw HTML codes, i.e. without the <head> section etc.
                    (Will use <br> for version 2.0.0 and above.)
      --html-title=...  Set HTML output title
  -i, --invert      Invert output image.  Use if your display has a dark
                    background.
      --background=dark   These are just mnemonics whether to use --invert
      --background=light  or not.  If your console has light characters on
                    a dark background, use --background=dark.
      --output=...  Write output to file.
      --red=N.N     Set RGB to grayscale conversion weight, default 0.2989f.
      --size=WxH    Set output width and height.
  -v, --verbose     Verbose output.
  -V, --version     Print program version.
      --width=N     Set output width, calculate height from ratio.

  The default mode is `jp2a --term-fit --background=dark'.
  See the man-page for jp2a for more detailed help text.

Project homepage on https://github.com/Talinx/jp2a
Report bugs to <chris-r@posteo.net>
Options (38)
OptionDescriptionSource
--blue N.NWhen converting from RGB to grayscale, use the given weights to calculate luminance.help + man
-b, --border --borderPrint a border around the output image.help + man
--chars ...Use the given characters when producing the output ASCII image.help + man
--clearClears screen before drawing each output image.help
--colorsUse truecolor (or ANSI color if truecolor is not supported) for text output and CSS color for HTML output.help + man
--color-depth NUse a specific color-depth for terminal output.help + man
-d, --debug --debugPrint debugging information when using libcurl to download images from the net.help + man
--edge-threshold N.NSpecifies an image gradient above which to shade lines and edges with directional glyphs (such as -/|).help + man
--edges-onlyOnly draw edges - make sure you use it with the edge-threshold option so edges are drawn.help + man
--fillWhen used with --html and --color, then color each output character's background color.help + man
-x, --flipx --flipxFlip output image horizontallyhelp + man
-y, --flipy --flipyFlip output image verticallyhelp + man
-f, --term-fit --term-fitUse the largest image dimension that fits in your terminal display with correct aspect ratio.help + man
--term-widthUse terminal display width and calculate height based on image aspect ratio.help + man
-z, --term-zoom --term-zoomUse terminal display dimension for output.help + man
--grayscaleConvert image to grayscale when using --htmlls or --xhtml or --colorshelp + man
--green N.NSet RGB to grayscale conversion weight, default is 0.5866help + man
--height NSet output height, calculate width from aspect ratio.help + man
-h, --help --helpDisplay a short help texthelp + man
--htmllsMake ASCII output in HTML (Living Standard), suitable for viewing with web browsers.help + man
--htmlProduce strict XHTML 1.0 output (will produce HTML output from version 2.0.0 onward).help + man
--xhtmlMake ASCII output in strict XHTML 1.0.help + man
--html-fillSame as --fill (will be phased out).help + man
--html-fontsize NSet fontsize when using --html output.help + man
--html-no-boldDo not use bold characters with HTML outputhelp + man
--html-rawOutput only the image in HTML codes, leaving out the rest of the webpage, so you can construct your own.help + man
--html-title ...Set HTML output title.help + man
-i, --invert --invertInvert output image.help + man
--background darkIf you don't want to mess with --invert all the time, just use these instead.help + man
--output ...Write ASCII output to given filename.help + man
--red N.NSet RGB to grayscale conversion weight, default 0.2989f.help + man
--size WxHSet output width and height.help + man
-v, --verbose --verbosePrint some verbose information to standard error when reading each JPEG image.help + man
-V, --version --versionPrint program version.help + man
--width NSet output width, calculate height from ratio.help + man
--term-heightUse terminal display height and calculate width based on image aspect ratio. (in the manual page but not in --help)man
-c --term-centerCenter image in terminal. (in the manual page but not in --help)man
--zoomSets output dimensions to your entire terminal window, disregarding source image aspect ratio. (in the manual page but not in --help)man
Exit status (1) from the manual page
1errors are encountered

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.