Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

demo thumbnailer

allofbe7815eec67
diff --git a/addon/thumbnail.sh b/addon/thumbnail.sh
new file mode 100755
index 000000000..ca6125716
--- /dev/null
+++ b/addon/thumbnail.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+cd /tmp
+FILE=`tempfile`.html
+wget "$1" -O $FILE -k
+convert $FILE -resize 168x128 "$2"
+if [ -e "${2%.png}"-0.png ];then
+ mv "${2%.png}"-0.png "${2}"
+ rm "${2%.png}"-[0-9]*.png
+fi
+rm $FILE