1
mirror of git://git.acid.vegas/archive.git synced 2024-11-24 09:06:39 +00:00
archive/art/p2u
2023-06-24 00:55:09 -04:00
..
Makefile Initial commit 2023-06-24 00:55:09 -04:00
p2u.c Initial commit 2023-06-24 00:55:09 -04:00
README.md Initial commit 2023-06-24 00:55:09 -04:00
screenshot.png Initial commit 2023-06-24 00:55:09 -04:00
stb_image_resize.h Initial commit 2023-06-24 00:55:09 -04:00
stb_image.h Initial commit 2023-06-24 00:55:09 -04:00

p2u

Convert JPG/GIF/PNG/PSD/TIFF/etc to ANSI and mIRC art

screenshot

Installation

make
sudo make install

Usage

usage: p2u [options] input

-b percent     Adjust brightness levels, default is 100.
-f a|d|e|m     Specify output format ANSI, DOS (ANSI with
               CP437 characters), emoji or mirc.  Default is ANSI.
-p m|v|x       Specify palette to use, mirc, VGA, or extended mirc,
               default is VGA.
-s percent     Adjust saturation levels, default is 100.
-t percent     Adjust transparency threshold of alpha channel,
               default is 50.
-w width       Specify output width, default is the image width.

By default the output will be the same width as the width in pixels of the original image. Each character represents 1x2 pixel blocks. Specifiying width will adjust the height to preserve the aspect ratio.