Files
cheatsheet-tldr/tldr/linux/img2txt
2025-06-29 00:23:20 +00:00

30 lines
755 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# img2txt
> Convert images to colour ASCII characters and output them to text-based coloured 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}}`