forked from CryHavoc/dottes
Change web to use PNG rather than JPG.
This makes the image files smaller and much sharper.
This commit is contained in:
parent
76e43cc3ac
commit
2f40bc5018
|
@ -48,7 +48,7 @@ find $booke -name "*.abc" | sort |
|
||||||
|
|
||||||
echo "<tr>" >> $webdir/$output
|
echo "<tr>" >> $webdir/$output
|
||||||
echo "<td>${title}</td>" >> $webdir/$output
|
echo "<td>${title}</td>" >> $webdir/$output
|
||||||
echo "<td><a href=\"${name}.jpg\">JPG</a></td>" >> $webdir/$output
|
echo "<td><a href=\"${name}.png\">PNG</a></td>" >> $webdir/$output
|
||||||
echo "<td><a href=\"${name}.pdf\">PDF</a></td>" >> $webdir/$output
|
echo "<td><a href=\"${name}.pdf\">PDF</a></td>" >> $webdir/$output
|
||||||
echo "<td><a href=\"${name}.mid\">MIDI</a></td>" >> $webdir/$output
|
echo "<td><a href=\"${name}.mid\">MIDI</a></td>" >> $webdir/$output
|
||||||
echo "<td><a href=\"${name}.mp3\">MP3</a></td>" >> $webdir/$output
|
echo "<td><a href=\"${name}.mp3\">MP3</a></td>" >> $webdir/$output
|
||||||
|
|
|
@ -24,15 +24,14 @@ find $booke -name "*.abc" | sort |
|
||||||
do
|
do
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
tmpname=${name}.tmp
|
tmpname=${name}.tmp
|
||||||
convert -density 96 $graphicsdir/${name}.eps $builddir/${tmpname}.jpg
|
convert -density 96 $graphicsdir/${name}.eps $builddir/${tmpname}.png
|
||||||
|
|
||||||
abc2midi $filename -o $builddir/${tmpname}.mid
|
abc2midi $filename -o $builddir/${tmpname}.mid
|
||||||
timidity -Ow -o $builddir/${tmpname}.wav $builddir/${tmpname}.mid
|
timidity -Ow -o $builddir/${tmpname}.wav $builddir/${tmpname}.mid
|
||||||
lame --quiet $builddir/${tmpname}.wav $builddir/${tmpname}.mp3
|
lame --quiet $builddir/${tmpname}.wav $builddir/${tmpname}.mp3
|
||||||
|
|
||||||
mv $builddir/${tmpname}.jpg $builddir/${name}.jpg
|
mv $builddir/${tmpname}.png $builddir/${name}.png
|
||||||
mv $builddir/${tmpname}.mid $builddir/${name}.mid
|
mv $builddir/${tmpname}.mid $builddir/${name}.mid
|
||||||
mv $builddir/${tmpname}.mp3 $builddir/${name}.mp3
|
mv $builddir/${tmpname}.mp3 $builddir/${name}.mp3
|
||||||
rm $builddir/${tmpname}.wav
|
rm $builddir/${tmpname}.wav
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue