Converter for xpms to png. Single square only.

git-svn-id: svn+ssh://svn.code.sf.net/p/crossfire/code/trunk/arch@806 282e977c-c81d-0410-88c4-b93c2d0d6712
master
peterm 2001-02-13 07:15:29 +00:00
parent 1296502b1a
commit 6d71f47912
1 changed files with 9 additions and 0 deletions

9
dev/xpmtopng 100644
View File

@ -0,0 +1,9 @@
#!/bin/csh
echo converting $1 from a 24x24 image to a centered 32x32 image.
convert -bordercolor \#123456 -border 4x4 $1 /tmp/$1
cat /tmp/$1 | sed "s/c None/c #123456/" | xpmtoppm | pnmtopng -transparent "#123456" > `basename $1 .xpm`.png