[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
generating png images
From: |
Tom Cato Amundsen |
Subject: |
generating png images |
Date: |
Mon, 11 Apr 2005 20:53:40 +0200 |
User-agent: |
Mutt/1.5.6+20040907i |
Hello.
I am trying to add support for lilypond files to the solfege wiki.
How can I best generate a png of the content of a lilypond file?
I am adding a
\header { tagline="" pagenumber=""}
to the top of each file.
The makefile snippet below is how I'm trying to generate a png at the
moment. The problem is that if the lilypond file ontain only a short
snippet, and has raggedright=##t, then the file is generated at a very
high resolution. You can see an example at
http://www.solfege.org/SolfegeDocsC/Theory-intervals
The second image has the same width as the first, but I want it to be
much smaller because it is only two bars.
Can anyone give me a hint how to do this? I am using lilypond 2.2 at the
moment?
%.ps: %.ly
lilypond --safe-mode $<
%.epsi: %.ps
ps2epsi $< $@
%.ppm: %.epsi
pstopnm -stdout $< > $@
%.png: %.ppm
cat $< | pnmflip -cw | pnmtopng >$@
clean:
-rm -f *.png *.ppm
--
Tom Cato Amundsen <address@hidden> http://www.solfege.org/
GNU Solfege - free ear training http://www.gnu.org/software/solfege/
- generating png images,
Tom Cato Amundsen <=