also moving photo script

This commit is contained in:
Eric Mill
2014-02-13 09:36:34 -08:00
parent 5022872975
commit 006d39b512

View File

@@ -1,14 +0,0 @@
#!/bin/sh
# Script to resize congress photos into the sizes we typically use.
# Run this from a directory with photos in it, named by bioguide ID.
# The photos will be resized and placed into directories named after the size, retaining their original filename.
for SIZE in "40x50" "100x125" "200x250"
do
mkdir $SIZE;
for f in *.jpg
do
convert $f -resize $SIZE^ -gravity center -extent $SIZE $SIZE/$f;
done
done