Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/thumbnail.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
if ! [ -x "$(command -v convert)" ]; then
echo 'Error: ImageMagick is not installed. Please install ImageMagick and try again.'
exit 1
fi
for i in *.jpg; do
convert "$i" -thumbnail 400 "thumbs/$i";
done;
Expand Down