3 Commits
0.2 ... 0.2.1

Author SHA1 Message Date
jeff
fffd5beea5 update readme 2015-08-31 13:33:08 -04:00
jeff
1f346b9da7 ammend readme to have users check out stable tags 2015-08-31 11:09:26 -04:00
jeff
cb5f7f2453 add thumb.sh tool 2015-08-31 10:58:28 -04:00
2 changed files with 26 additions and 1 deletions

View File

@@ -10,7 +10,9 @@ After you [built and installed the daemon](doc/build.md) and [set up your databa
# clone it
git clone https://github.com/majestrate/nntpchan ~/nntpchan
cd ~/nntpchan
# get the latest stable release
cd ~/nntpchan/
git checkout tags/0.2.1
# set up the workspace
srndv2 setup

23
contrib/tools/thumbs.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
#
# shell script for regenerating thumbnails
#
if [ "$1" == "" ] ; then
echo "usage: $0 webroot_dir"
else
cd $1
echo "regenerate missing thumbs in $(pwd)"
find img/ \
-type f \
-regextype posix-extended \
-iregex '.*\.(png|jpg|gif)$' \
-not -execdir test -f '../thm/{}' \; \
-exec echo 'generating missing thumb for {}' \; \
-exec mogrify \
-define jpeg:size=500x500 \
-thumbnail '250>x250>' \
-path thm/ \
-strip \
'{}' \;
fi