commands.sh

img2txt

linux

Convert images to color ASCII characters and output them to text-based colored files.

More info →

Options (5)

-W, --widthboolean

Set output column count to a specific value

Example: img2txt {{[-W|--width]}} {{10}} {{path/to/image}}
-H, --heightboolean

Set output line count to a specific value

Example: img2txt {{[-H|--height]}} {{5}} {{path/to/image}}
-x, --font-widthboolean

Set output font width to a specific value

Example: img2txt {{[-x|--font-width]}} {{12}} {{path/to/image}}
-y, --font-heightboolean

Set output font height to a specific value

Example: img2txt {{[-y|--font-height]}} {{14}} {{path/to/image}}
-b, --brightnessboolean

Set image brightness to a specific value

Example: img2txt {{[-b|--brightness]}} {{2}} {{path/to/image}}

Examples (5)

Set output column count to a specific value

img2txt [-W|--width] 10 path/to/image

Set output line count to a specific value

img2txt [-H|--height] 5 path/to/image

Set output font width to a specific value

img2txt [-x|--font-width] 12 path/to/image

Set output font height to a specific value

img2txt [-y|--font-height] 14 path/to/image

Set image brightness to a specific value

img2txt [-b|--brightness] 2 path/to/image
made by @shridhargupta | data from tldr-pages