您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

make-thumb.sh 244B

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