Skip to content

Commit

Permalink
gen_thumbnails.sh: git add images and checksums
Browse files Browse the repository at this point in the history
This should make adding new images a bit more convenient
  • Loading branch information
florianfesti committed May 9, 2024
1 parent 76adaf0 commit d65f984
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/gen_thumbnails.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ THUMB_HEIGHT=10000 # height: auto;
thumbnail() {
echo "convert \"$1\" -thumbnail ${THUMB_WIDTH}x${THUMB_HEIGHT} \"${1%.*}-thumb.jpg\""
convert "$1" -thumbnail ${THUMB_WIDTH}x${THUMB_HEIGHT} "${1%.*}-thumb.jpg"
git add "$1" "${1%.*}-thumb.jpg" "$STATIC_DIR"samples.sha256
}

[ ! -f "$STATIC_DIR"samples.sha256 ] && touch "$STATIC_DIR"samples.sha256
Expand Down

0 comments on commit d65f984

Please sign in to comment.