📄 procimage
字号:
filename=$1extension=${filename##*.}ppmfile=${filename%.*}.ppmoutfile=${filename%.*}.gifif [ -z $filename ]; then echo "procfile: No file specified" exit 1fiif [ $extension = gif ]; then exit 0elif [ $extension = tga ]; then tgatoppm $filename > $ppmfileelif [ $extension = xpm ]; then xpmtoppm $filename > $ppmfileelif [ $extension = pcx ]; then pcxtoppm $filename > $ppmfileelif [ $extension = tif ]; then tifftopnm $filename > $ppmfileelif [ $extension = jpg ]; then djpeg $filename > $ppmfileelse echo "procfile: $filename is an unknown graphics file." exit 1fippmquant -quiet 256 $ppmfile | ppmtogif -quiet > $outfilerm $ppmfile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -