diff --git a/README.md b/README.md index ea700a5..04e3abf 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ For example, you only need either `elinks`, `lynx` or | pdf | `pdftoppm` | | text | `bat` `cat` `highlight` `source-highlight` | | torrent | `transmission-show` | -| video | `ffmpegthumbnailer` | +| video | `convert` `ffmpegthumbnailer` | diff --git a/doc/ctpv.1 b/doc/ctpv.1 index bdcda3f..e3ef640 100644 --- a/doc/ctpv.1 +++ b/doc/ctpv.1 @@ -115,7 +115,7 @@ torrent T{ transmission\-show T} video T{ -ffmpegthumbnailer +convert ffmpegthumbnailer T} .TE .\" TABLEEND diff --git a/previews.h b/previews.h index 2925f85..f180dfd 100644 --- a/previews.h +++ b/previews.h @@ -40,6 +40,7 @@ Preview b_previews[] = { PR(NULL, "text", NULL, cat, PREV_ATTR_NONE), PR(NULL, "image", NULL, image, PREV_ATTR_NONE), + PR(NULL, "image", "svg+xml", svg, PREV_ATTR_NONE), PR(NULL, "video", NULL, video, PREV_ATTR_NONE), PR(NULL, "application", "pdf", pdf, PREV_ATTR_NONE), diff --git a/sh/prev/svg.sh b/sh/prev/svg.sh new file mode 100644 index 0000000..0f423e9 --- /dev/null +++ b/sh/prev/svg.sh @@ -0,0 +1,7 @@ +# video: convert + +video() { + convert "$f" "jpg:$cache_f" +} + +convert_and_show_image video