Advertisement
RedTeaHacker

Crop Images

Jan 21st, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. #!/bin/sh
  2. x=10
  3. y=10
  4. width=100
  5. height=100
  6. for f in *.png; do
  7.  echo $f
  8.  convert "$f" -crop "$width"x"$height"+"$x"+"$y" "$f"
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement