Skip to content

Commit

Permalink
removed TestBlog, updated thumbs.sh, generated thumbs for blog 2023-1…
Browse files Browse the repository at this point in the history
…0-17
  • Loading branch information
leohhhn committed Oct 30, 2023
1 parent 302caab commit cd40766
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 0 additions & 1 deletion Test Blog Post

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 11 additions & 7 deletions posts/thumbs.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/sh -x

for dir in */; do (
cd $dir
mkdir -p thumbs
for dir in */; do
if [ -d "${dir}src" ]; then
mkdir -p "${dir}src/thumbs"
cd "${dir}src" || continue # Change the working directory to $dir

for img in *.png *.jpg; do
convert $img -resize 600x ./thumbs/$img
done
); done
for img in *.png *.jpg; do
sips --resampleWidth 600 "$img" --out "thumbs/$img"
done

cd .. # Return to the parent directory
fi
done

0 comments on commit cd40766

Please sign in to comment.