diff options
| author | Jakob L. Kreuze | 2024-07-13 18:04:05 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2024-07-13 18:11:42 -0400 |
| commit | 81c4d517735983a5afd6e9dc800257c761598527 (patch) | |
| tree | 6b924707914d385126e6d330d2c628fd26f23a27 /haunt/jakob/dynamic/import-images.sh | |
| parent | 7f37518e4792f040a753a5d8d68d51e76cc0b2be (diff) | |
The `org' directory is no longer necessary
Diffstat (limited to 'haunt/jakob/dynamic/import-images.sh')
| -rw-r--r-- | haunt/jakob/dynamic/import-images.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/haunt/jakob/dynamic/import-images.sh b/haunt/jakob/dynamic/import-images.sh deleted file mode 100644 index 23f6130..0000000 --- a/haunt/jakob/dynamic/import-images.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -VANITY="$1" -shift - -for item in "$@"; do - filename=$(basename -- "$item") - extension="${filename##*.}" - filename="${filename%.*}" - uuid="$(uuidgen)" - cp "$item" "/home/jakob/gallery-images/$uuid.$extension" - convert "/home/jakob/gallery-images/$uuid.$extension" -thumbnail '100x100>' "/home/jakob/gallery-images/${uuid}_thumb.png" - psql jakob_gallery -c "INSERT INTO images (vanity, title, filename, thumb_filename, datetime) VALUES ('$VANITY', '$filename', '$uuid.$extension', '${uuid}_thumb.png', now());" -done |