Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It mostly works, but we probably should not upscale. Also, gravity doesn't seem to work.
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |