summaryrefslogtreecommitdiff
path: root/lf
diff options
context:
space:
mode:
Diffstat (limited to 'lf')
-rwxr-xr-xlf/scope5
1 files changed, 5 insertions, 0 deletions
diff --git a/lf/scope b/lf/scope
index 4058543..39fdfef 100755
--- a/lf/scope
+++ b/lf/scope
@@ -26,6 +26,11 @@ ifub() {
# be regenerated once seen.
case "$(file --dereference --brief --mime-type -- "$1")" in
+ image/svg+xml)
+ gencacheimage "$1" ".png"
+ [ ! -f "$CACHE" ] && convert -background none "$1" "$CACHE"
+ image "$CACHE" "$2" "$3" "$4" "$5"
+ ;;
image/*) image "$1" "$2" "$3" "$4" "$5" ;;
text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
text/troff) man ./ "$1" | col -b ;;