lilypond-1.3.147
[lilypond.git] / bin / ps-to-gifs.in
blobdc5198867533f81e4d2fab82a751734b256e029c
1 #!/bin/bash
3 usage()
5 echo 'ps-to-gifs.sh FILE.ps'
6 exit 2;
9 case $# in
11 FILE=`basename $1 .ps`
14 usage
16 esac
18 # generate the pixmap at twice the size, then rescale (for antialiasing)
19 cat $1 | gs -q -sDEVICE=ppmraw \
20 -sOutputFile="|pnmscale 0.5|ppmtogif > $FILE-page%d.gif" \
21 -r200 -dNOPAUSE - -c quit