8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c862ee3 commit fbb20adCopy full SHA for fbb20ad
boards/.gitignore
@@ -1 +1,2 @@
1
*/*.thumb.jpg
2
+*/*.thumb.png
boards/update-thumb.sh
@@ -1,3 +1,13 @@
#!/bin/bash
-rm */*.thumb.jpg
3
-for file in */*; do convert $file -thumbnail 300 ${file/.jpg/.thumb.jpg}; done
+
+function update_thumb {
4
+ ext=$1
5
+ rm */*.thumb.$ext
6
+ for file in */*.$ext; do
7
+ echo "Processing $file"
8
+ convert $file -thumbnail 300 ${file/.$ext/.thumb.$ext}
9
+ done
10
+}
11
12
+update_thumb jpg
13
+update_thumb png
0 commit comments