Small maker of thumbnails and spitter-out of HTML for galleries.

install_for_dev_and_test.sh 543B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env bash
  2. # This probably isn't necessary:
  3. sudo pip3 install -e .
  4. cd test
  5. if [[ -d Thumbs ]]; then
  6. echo "deleting any existing thumbs"
  7. rm -rf Thumbs
  8. fi
  9. if [[ -f index.html ]]; then
  10. echo "deleting index.html"
  11. rm index.html
  12. fi
  13. if [[ -f index.json ]]; then
  14. echo "deleting index.json"
  15. rm index.json
  16. fi
  17. gallery-html --base_url "https://p1k3.com/photos/example/" --html index.html
  18. tail -3 index.html
  19. echo
  20. ls Thumbs
  21. gallery-html --json index.json
  22. tail -3 index.json
  23. echo
  24. gallery-html --overwrite -x 500 -y 500
  25. ls Thumbs