mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-01-20 23:18:34 +01:00
Add svg support
This commit is contained in:
parent
d38577e061
commit
230f6254c5
@ -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` |
|
||||
|
||||
<!--TABLEEND-->
|
||||
|
||||
|
@ -115,7 +115,7 @@ torrent T{
|
||||
transmission\-show
|
||||
T}
|
||||
video T{
|
||||
ffmpegthumbnailer
|
||||
convert ffmpegthumbnailer
|
||||
T}
|
||||
.TE
|
||||
.\" TABLEEND
|
||||
|
@ -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),
|
||||
|
7
sh/prev/svg.sh
Normal file
7
sh/prev/svg.sh
Normal file
@ -0,0 +1,7 @@
|
||||
# video: convert
|
||||
|
||||
video() {
|
||||
convert "$f" "jpg:$cache_f"
|
||||
}
|
||||
|
||||
convert_and_show_image video
|
Loading…
Reference in New Issue
Block a user