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

  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