aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2021-02-21 03:02:26 +0000
committerGitHub <noreply@github.com>2021-02-21 03:02:26 +0000
commitfed27f501bee150dd1e41b4d4f0ca7121f7f669e (patch)
treea427842ca43f94ad82816a1876fabb517d1ea45f /image.c
parentUpdate ChangeLog (diff)
parentConvert images to PNG for kitty with ImageMagick (diff)
downloadw3m-fed27f501bee150dd1e41b4d4f0ca7121f7f669e.tar.gz
w3m-fed27f501bee150dd1e41b4d4f0ca7121f7f669e.zip
Merge pull request #168 from bptato/inlineimages
Improved iTerm2 image display + initial kitty image support
Diffstat (limited to '')
-rw-r--r--image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/image.c b/image.c
index 6e4e9b4..a84d974 100644
--- a/image.c
+++ b/image.c
@@ -198,6 +198,8 @@ syncImage(void)
void put_image_osc5379(char *url, int x, int y, int w, int h, int sx, int sy, int sw, int sh);
void put_image_sixel(char *url, int x, int y, int w, int h, int sx, int sy, int sw, int sh, int n_terminal_image);
void put_image_iterm2(char *url, int x, int y, int w, int h);
+void put_image_kitty(char *url, int x, int y, int w, int h, int sx, int sy, int
+ sw, int sh, int c, int r);
void
drawImage()
@@ -256,6 +258,8 @@ drawImage()
put_image_osc5379(url, x, y, w, h, sx, sy, sw, sh);
} else if (enable_inline_image == INLINE_IMG_ITERM2) {
put_image_iterm2(url, x, y, sw, sh);
+ } else if (enable_inline_image == INLINE_IMG_KITTY) {
+ put_image_kitty(url, x, y, i->width, i->height, i->sx, i->sy, sw * pixel_per_char, sh * pixel_per_line_i, sw, sh);
}
continue ;