From 15ffa3d6f0122e139a076880ec071fa361c564b7 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Tue, 16 Mar 2021 20:13:10 -0700 Subject: [PATCH] Update manpage. --- man/timg.1 | 27 +++++++++++++++++---------- man/timg.1.md | 23 +++++++++++++++-------- 2 files changed, 32 insertions(+), 18 deletions(-) diff --git a/man/timg.1 b/man/timg.1 index 5d7292f..9da604e 100644 --- a/man/timg.1 +++ b/man/timg.1 @@ -53,15 +53,16 @@ terminal. The image is scaled to fit inside the available box to fill the screen; see \f[B]-W\f[R] if you want to fill the width. .TP -\f[B]-p\f[R] \f[I]<[h|q|k]>\f[R], \f[B]--pixelation\f[R]=\f[I][h|q|k]\f[R] +\f[B]-p\f[R] \f[I]<[h|q|k|i]>\f[R], \f[B]--pixelation\f[R]=\f[I][h|q|k|i]\f[R] Choice for pixelation of the content. Value `h' chooses unicode half block characters, while `q' chooses quarter blocks. -The choice `k' chooses kitty-graphics protocol. +The choice `k' chooses kitty-graphics protocol, `i' the iTerm2 graphics +protocol. .RS .PP Half blocks have a pixel aspect ratio of about 1:1 and allow to -represent the colors correctly, but they look more `blocky'. +represent colors correctly, but they look more `blocky'. .PP Quarter blocks will have a pixel aspect ratio of 1:2 (timg will stretch the picture accordingly, no worries), and can only represent colors @@ -71,16 +72,22 @@ This increases the spatial resolution in x-direction at expense of slight less color accuracy. It makes it look less `blocky' and usually better. .PP -The Kitty graphics protocol allows to display pictures directly on the -terminal. -This is only implemented in a limited set of terminals (only kitty now -?). -If your terminal does not support this protocol, you will get a bunch of -random characters. +There are terminal emulators that allow to display high-resolution +pictures. +If timg is detecting to run in a Kitty, iTerm2 or WezTerm, the +corresponding mode is auto-selected. +You can choose the modes explicitly with -pk (Kitty) or -pi (iTerm2 +protocol, also implemented by WezTerm). .PP -Default is `quarter'. +Default is `quarter' unless the terminal is graphics-capable. .RE .TP +\f[B]--compress\f[R] +For the graphics modes: this switches on compression for the +transmission to the terminal. +This uses more CPU on timg, but is desirable when connected over a slow +network. +.TP \f[B]-C\f[R], \f[B]--center\f[R] Center image(s) and title(s) horizontally. .TP diff --git a/man/timg.1.md b/man/timg.1.md index df7ecf1..18197e7 100644 --- a/man/timg.1.md +++ b/man/timg.1.md @@ -47,13 +47,14 @@ these file decoders (GraphicsMagick or libav respectively). scaled to fit inside the available box to fill the screen; see **-W** if you want to fill the width. -**-p** *<[h|q|k]>*, **-\-pixelation**=*[h|q|k]* +**-p** *<[h|q|k|i]>*, **-\-pixelation**=*[h|q|k|i]* : Choice for pixelation of the content. Value 'h' chooses unicode half block characters, while 'q' chooses quarter blocks. - The choice 'k' chooses kitty-graphics protocol. + The choice 'k' chooses kitty-graphics protocol, 'i' the iTerm2 graphics + protocol. Half blocks have a pixel aspect ratio of about 1:1 and allow to represent - the colors correctly, but they look more 'blocky'. + colors correctly, but they look more 'blocky'. Quarter blocks will have a pixel aspect ratio of 1:2 (timg will stretch the picture accordingly, no worries), and can only @@ -62,12 +63,18 @@ these file decoders (GraphicsMagick or libav respectively). in x-direction at expense of slight less color accuracy. It makes it look less 'blocky' and usually better. - The Kitty graphics protocol allows to display pictures directly on the - terminal. This is only implemented in a limited set of terminals - (only kitty now ?). If your terminal does - not support this protocol, you will get a bunch of random characters. + There are terminal emulators that allow to display high-resolution + pictures. If timg is detecting to run in a Kitty, iTerm2 or WezTerm, + the corresponding mode is auto-selected. You can choose the modes + explicitly with -pk (Kitty) or -pi (iTerm2 protocol, also implemented + by WezTerm). - Default is 'quarter'. + Default is 'quarter' unless the terminal is graphics-capable. + +**-\-compress** +: For the graphics modes: this switches on compression for the transmission to + the terminal. This uses more CPU on timg, but is desirable when connected + over a slow network. **-C**, **-\-center** : Center image(s) and title(s) horizontally.