mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:02:08 +02:00
catimg: add page (#8412)
* catimg: add page * Switch "path/to/input" with "path/to/file" * Remove "and" from see also section * Replace "custom" with a provided value * Improve resolution description * Remove trailing whitespace * Improve width/height description
This commit is contained in:
parent
8b86e57401
commit
9d82ca5bb3
1 changed files with 21 additions and 0 deletions
21
pages/common/catimg.md
Normal file
21
pages/common/catimg.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# catimg
|
||||
|
||||
> Image printing in the terminal.
|
||||
> See also: `pixterm`, `chafa`.
|
||||
> More information: <https://github.com/posva/catimg>.
|
||||
|
||||
- Print a JPEG, PNG, or GIF to the terminal:
|
||||
|
||||
`catimg {{path/to/file}}`
|
||||
|
||||
- Double the [r]esolution of an image:
|
||||
|
||||
`catimg -r 2 {{path/to/file}}`
|
||||
|
||||
- Disable 24-bit color for better [t]erminal support:
|
||||
|
||||
`catimg -t {{path/to/file}}`
|
||||
|
||||
- Specify a custom [w]idth or [H]eight:
|
||||
|
||||
`catimg {{-w|-H}} {{40}} {{path/to/file}}`
|
Loading…
Add table
Reference in a new issue