?? procimage1
字號:
# Set up the defaultswidth=1colour='-color grey'usage="Usage: $0 [-S] [-s N] [-w N] [-c S] imagefile..."# Initialise the pipeline componentsstandardise=' | ppmquant -quiet 256 | ppmtogif -quiet'while getopts ":Ss:w:c:" opt; do case $opt in S ) sharpness=' | pnmnlfilt -0.7 0.45' ;; s ) size=$OPTARG scale=' | pnmscale -quiet -xysize $size $size' ;; w ) width=$OPTARG border=' | pnmmargin $colour $width' ;; c ) colour="-color $OPTARG" border=' | pnmmargin $colour $width' ;; \? ) echo $usage exit 1 ;; esacdoneshift $(($OPTIND - 1))if [ -z "$@" ]; then echo $usage exit 1fi# Process the input filesfor filename in "$@"; do case $filename in *.gif ) convert=giftopnm ;; *.tga ) convert=tgatoppm ;; *.xpm ) convert=xpmtoppm ;; *.pcx ) convert=pcxtoppm ;; *.tif ) convert=tifftopnm ;; *.jpg ) convert=djpeg ;; * ) echo "$0: Unknown filetype '${filename##*.}'" exit 1;; esac outfile=${filename%.*}.new.gif eval $convert $filename $scale $border $sharpness $standardise > $outfiledone
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -