diff options
| author | allo <allo@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2007-01-18 15:23:07 +0000 |
|---|---|---|
| committer | allo <allo@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2007-01-18 15:23:07 +0000 |
| commit | fbe7815eec67bdf3551789aff92a96bb28c3464d (patch) | |
| tree | 22079c16d58cdf21844178acb50b0d0f783c2995 /addon | |
| parent | df4fe259c98e741a9afd088e380182acd5ec500b (diff) | |
demo thumbnailer
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3246 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'addon')
| -rwxr-xr-x | addon/thumbnail.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
