From a50c48b6e1672267dd831972e76fd2130ef3b3e9 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 7 Sep 2015 17:17:02 +0200 Subject: cleaned working directory and simplified installation, mimetype previews now possible --- generate.sh | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 generate.sh (limited to 'generate.sh') diff --git a/generate.sh b/generate.sh deleted file mode 100755 index d1737fb..0000000 --- a/generate.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# invoke as ./generate.sh FILENAME -# it is used to generate smaller versions from the one found in scalable - - - -FILE=${1#scalable/} -PATH=$(dirname $FILE) - -for VERSION in 16x16 32x32 48x48 64x64 128x128 256x256 -do - /bin/mkdir -p "cache/$VERSION/$PATH" -done - - -/usr/bin/convert $1 \ - \( -clone 0 -resize 16x16 -write cache/16x16/$FILE \) \ - \( -clone 0 -resize 32x32 -write cache/32x32/$FILE \) \ - \( -clone 0 -resize 48x48 -write cache/48x48/$FILE \) \ - \( -clone 0 -resize 64x64 -write cache/64x64/$FILE \) \ - \( -clone 0 -resize 128x128 -write cache/128x128/$FILE \) \ - \( -clone 0 -resize 256x256 -write cache/256x256/$FILE \) \ - null: - -- cgit v1.2.3