Plan 9 from Bell Labs’s /usr/web/sources/contrib/sl/rc/toface

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
rfork e
switch($1){
case *.bmp *.BMP
	ext=bmp
case *.gif *.GIF
	ext=gif
case *.ico *.ICO
	ext=ico
case *.jpg *.jpeg *.JPG *.JPEG
	ext=jpg
case *.png *.PNG
	ext=png
case *.ppm *.PPM
	ext=ppm
case *.tga *.TGA
	ext=tga
case *.tif *.tiff *.TIF *.TIFF
	ext=tif
case *.v210 *.V210
	ext=v210
case *.yuv *.YUV
	ext=yuv
case *.bit *.BIT
	iconv -c m8 $1 | resample -x 48 -y 48
	exit
}
eval $ext -c $1  | iconv -c m8 | resample -x 48 -y 48

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.