mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-06-20 18:08:02 +02: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` |
|
| pdf | `pdftoppm` |
|
||||||
| text | `bat` `cat` `highlight` `source-highlight` |
|
| text | `bat` `cat` `highlight` `source-highlight` |
|
||||||
| torrent | `transmission-show` |
|
| torrent | `transmission-show` |
|
||||||
| video | `ffmpegthumbnailer` |
|
| video | `convert` `ffmpegthumbnailer` |
|
||||||
|
|
||||||
<!--TABLEEND-->
|
<!--TABLEEND-->
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ torrent T{
|
|||||||
transmission\-show
|
transmission\-show
|
||||||
T}
|
T}
|
||||||
video T{
|
video T{
|
||||||
ffmpegthumbnailer
|
convert ffmpegthumbnailer
|
||||||
T}
|
T}
|
||||||
.TE
|
.TE
|
||||||
.\" TABLEEND
|
.\" TABLEEND
|
||||||
|
@ -40,6 +40,7 @@ Preview b_previews[] = {
|
|||||||
PR(NULL, "text", NULL, cat, PREV_ATTR_NONE),
|
PR(NULL, "text", NULL, cat, PREV_ATTR_NONE),
|
||||||
|
|
||||||
PR(NULL, "image", NULL, image, 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, "video", NULL, video, PREV_ATTR_NONE),
|
||||||
|
|
||||||
PR(NULL, "application", "pdf", pdf, 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…
x
Reference in New Issue
Block a user