]> git.lizzy.rs Git - dirlistozxa.git/blobdiff - gen-thumbs
File icons and image thumbnails!!!
[dirlistozxa.git] / gen-thumbs
diff --git a/gen-thumbs b/gen-thumbs
new file mode 100755 (executable)
index 0000000..bc38ea2
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# Generates thumbs
+
+rm -rf .thumbs/
+mkdir .thumbs
+
+find \( -iname "*.png" -or -iname "*.jpg" -or -iname "*.jpeg" \) -exec bash -c 'mogrify -path .thumbs/ -auto-orient -thumbnail 128x128 -quality 90% "{}" &' \;