Small maker of thumbnails and spitter-out of HTML for galleries.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
543 B

#!/usr/bin/env bash
# This probably isn't necessary:
sudo pip3 install -e .
cd test
if [[ -d Thumbs ]]; then
echo "deleting any existing thumbs"
rm -rf Thumbs
fi
if [[ -f index.html ]]; then
echo "deleting index.html"
rm index.html
fi
if [[ -f index.json ]]; then
echo "deleting index.json"
rm index.json
fi
gallery-html --base_url "https://p1k3.com/photos/example/" --html index.html
tail -3 index.html
echo
ls Thumbs
gallery-html --json index.json
tail -3 index.json
echo
gallery-html --overwrite -x 500 -y 500
ls Thumbs