Skip to content

Commit

Permalink
Add program that converst images to faces (stolen from sl).
Browse files Browse the repository at this point in the history
  • Loading branch information
1g0rb0hm committed Dec 6, 2020
1 parent b91ebf5 commit 252a296
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions bin/rc/toface
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/rc
rfork e
ext=`{echo $1 | tr A-Z a-z}
switch($ext){
case *.bmp
cmd=bmp
case *.gif
cmd=gif
case *.ico
cmd=ico
case *.jpg *.jpeg
cmd=jpg
case *.png
cmd=png
case *.ppm
cmd=ppm
case *.tga
cmd=tga
case *.tif *.tiff
cmd=tif
case *.v210
cmd=v210
case *.yuv
cmd=yuv
case *.bit
iconv -c m8 $1 | resample -x 48 -y 48
exit
}
eval $cmd -c $1 | iconv -c m8 | resample -x 48 -y 48

0 comments on commit 252a296

Please sign in to comment.