File talk:Chess tile pd.png

维基共享资源,媒体文件资料库
跳转到导航 跳转到搜索

Notes

[编辑]

Notes on improving the chess piece resolution:

I downloaded ftp://ftp.dante.de/tex-archive/fonts/chess/chess.zip, which is version 1.2 of Piet Tutelaers' TeX chess fonts.

unzip chess.zip
cd chess
export MFINPUTS=$PWD/mf
echo chess30 | tex testfont "\table\bye"
dvips -mode ljfzzz -D 1200 testfont.dvi -o chess30.ps
convert -density 1200 chess30.ps chess30.pnm
pnmcut -left 3649 -top 3857 -width 504 -height 504 chess30.pnm | pnmtopng > bl.png
pnmcut -left 4471 -top 4470 -width 504 -height 504 chess30.pnm | pnmtopng > kl.png
pnmcut -left 6937 -top 4470 -width 504 -height 504 chess30.pnm | pnmtopng > nl.png
pnmcut -left 2005 -top 5083 -width 504 -height 504 chess30.pnm | pnmtopng > pl.png
pnmcut -left 2827 -top 5083 -width 504 -height 504 chess30.pnm | pnmtopng > ql.png
pnmcut -left 3649 -top 5083 -width 504 -height 504 chess30.pnm | pnmtopng > rl.png
pnmcut -left 3649 -top 6309 -width 504 -height 504 chess30.pnm | pnmtopng > bd.png
pnmcut -left 4471 -top 6922 -width 504 -height 504 chess30.pnm | pnmtopng > kd.png
pnmcut -left 6937 -top 6922 -width 504 -height 504 chess30.pnm | pnmtopng > nd.png
pnmcut -left 2005 -top 7535 -width 504 -height 504 chess30.pnm | pnmtopng > pd.png
pnmcut -left 2827 -top 7535 -width 504 -height 504 chess30.pnm | pnmtopng > qd.png
pnmcut -left 3649 -top 7535 -width 504 -height 504 chess30.pnm | pnmtopng > rd.png
for name in *.png; do convert -transparent white $name $name.t; done

pd.png didn't need any change. On bd.png I filled in 11 stray pixels around the + as black.

dbenbenn | talk 20:53, 18 Jun 2005 (UTC)