You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112
  1. #!/bin/sh
  2. # Thumbnails for something, invocation from workingdir
  3. make_thumbnail() {
  4. pic=$1
  5. thumb=$(dirname "$1")/thumb-$(basename "$1")
  6. convert "$pic" -thumbnail x150 "$thumb"
  7. }
  8. for pic in ./*.png
  9. do
  10. make_thumbnail "$pic"
  11. done