From 9d82ca5bb35e87fc8351c0ed797a0a8610aaf89c Mon Sep 17 00:00:00 2001 From: Cairn Date: Sun, 28 Aug 2022 19:18:01 -0400 Subject: [PATCH] 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 --- pages/common/catimg.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/catimg.md diff --git a/pages/common/catimg.md b/pages/common/catimg.md new file mode 100644 index 000000000..0b9261a69 --- /dev/null +++ b/pages/common/catimg.md @@ -0,0 +1,21 @@ +# catimg + +> Image printing in the terminal. +> See also: `pixterm`, `chafa`. +> More information: . + +- 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}}`