Skip to content

Commit

Permalink
First draft of scale script
Browse files Browse the repository at this point in the history
It mostly works, but we probably should not upscale. Also, gravity doesn't seem to work.
  • Loading branch information
rdebeasi committed Nov 27, 2018
1 parent 01d97f6 commit df9e4b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -4,6 +4,9 @@ node_modules/
# built things
static/js/lunr/PagesIndex.json

# Cropped images (generated at build)
static/images/scaled

# Editor files
*.swp

Expand Down
8 changes: 8 additions & 0 deletions scale.sh
@@ -0,0 +1,8 @@
# Scale and crop images for use in cards

cd static/images
mkdir scaled
for file in *.{jpg,jpeg,png} ; do
echo converting $file
convert $file -resize 640x426^ -extent 640x426 -gravity center scaled/$file
done

0 comments on commit df9e4b0

Please sign in to comment.