---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# img2txt

> Convert images to color ASCII characters and output them to text-based colored files.
> More information: <https://manned.org/img2txt>.

- 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}}`
