aboutsummaryrefslogtreecommitdiff
path: root/folder-thumbnailer
diff options
context:
space:
mode:
authorj-james2021-12-20 23:08:24 +0000
committerj-james2021-12-20 23:08:24 +0000
commitd4c3205dbec2ea31cb4f6840403b4e684c8a9596 (patch)
tree72322a3a3437f73c9cdf8688101221db35321490 /folder-thumbnailer
parentec485688cd407bb0983c208dbf2c3267a9a071fc (diff)
More idiomatically install thumbnailer script
Diffstat (limited to 'folder-thumbnailer')
-rw-r--r--folder-thumbnailer15
1 files changed, 0 insertions, 15 deletions
diff --git a/folder-thumbnailer b/folder-thumbnailer
deleted file mode 100644
index b4b0b5b..0000000
--- a/folder-thumbnailer
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-if [ -f "$2/.folder.jpg" ]; then
- convert -thumbnail "$1" "$2/.folder.jpg" "$3" 1>/dev/null 2>&1
-elif [ -f "$2/.folder.png" ]; then
- convert -thumbnail "$1" "$2/.folder.png" "$3" 1>/dev/null 2>&1
-elif [ -f "$2/.folder.svg" ]; then
- inkscape --export-type=png --export-dpi=500 "$2/.folder.svg" --export-filename="$3" 1>/dev/null 2>&1
- convert -thumbnail "$1" "$3" "$3" 1>/dev/null 2>&1
-else
- rm -f "$HOME/.cache/thumbnails/normal/$(echo -n "$4" | md5sum | cut -d " " -f1).png" || \
- rm -f "$HOME/.thumbnails/normal/$(echo -n "$4" | md5sum | cut -d " " -f1).png" || \
- rm -f "$HOME/.cache/thumbnails/large/$(echo -n "$4" | md5sum | cut -d " " -f1).png" || \
- rm -f "$HOME/.thumbnails/large/$(echo -n "$4" | md5sum | cut -d " " -f1).png"
-fi