On 11/12/2013 05:22 PM, Fulvio wrote: Hi!
Probably, the attached two scripts would be of help. I actually thought they were in the source tree.
Alexander Klimov wrote:Fortunately it is not that hard to do this using ImageMagick by running the following bash script in img/pieces/Merida/ for s in 25 31 38 46 57 70 86 106 130 160; do convert -size $((12*s*4))x$((s*4)) xc:white\ -family "Chess Merida" -pointsize $((4*s))\ -gravity North-West \ -annotate +0+0 "pnbrqkomvtwl" -background white \ -fill none -draw "color 0,0 floodfill" \ -resize $((12*s))x$((s)) \ Merida_$s.png donecool! ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Scid-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scid-users
--
Kind regards, / War is Peace.
| Freedom is Slavery.
Alexander Wagner | Ignorance is Strength.
|
| Theory : G. Orwell, "1984"
/ In practice: USA, since 2001
#!/bin/sh
input=$1
target=$2
# input=/opt/chess/stow/Share/share/xboard/src/Themes/Pieces/Merida/
# target=/tmp/scid
pieces="B K N P Q R b k n p q r"
sizes="25 30 35 40 45 50 55 60 65 70 75 80"
for size in $sizes
do
for pic in $pieces
do
convert $input/$pic.png -geometry "$size"x"$size>"
$target/$pic-$size.png
done
## montage -geometry "$size"x"$size+0+0" -background transparent -tile
6x1 \
## $target/P-$size.png $target/N-$size.png $target/B-$size.png \
## $target/R-$size.png $target/Q-$size.png $target/K-$size.png
$target/black-$size.png
## montage -geometry "$size"x"$size+0+0" -background transparent -tile
6x1 \
## $target/p-$size.png $target/n-$size.png $target/b-$size.png \
## $target/r-$size.png $target/q-$size.png $target/k-$size.png
$target/white-$size.png
montage -geometry "$size"x"$size+0+0" -background transparent -tile
12x1 \
$target/p-$size.png $target/n-$size.png $target/b-$size.png \
$target/r-$size.png $target/q-$size.png $target/k-$size.png \
$target/P-$size.png $target/N-$size.png $target/B-$size.png \
$target/R-$size.png $target/Q-$size.png $target/K-$size.png
$target/scid-$size.png
done
toscid.pl
Description: Perl program
------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________ Scid-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scid-users
