David Boersma wrote:

I am trying to create a png output file with Lilypond. I tried:
lilypond -f PNG test.ly

Yesterday there was also a question about PNG generation. In UNIX/Linux
there is a beautiful command "convert" which translates one picture format
into another. If you create a single page postscript file mymusic.ps with
lilypond, then with the command ...

convert mymusic.ps mymusic.png


David is right, and 'convert' will also automatically create separate png files for each page of a mulitpage ps file. Boy, does this make sense. It's a beautiful example of a tiny Unix command that you can daisychain onto your lilypond command, e.g.

ly2dvi -P foo.ly && convert foo.ps foo.png

will produce foo.png.0 and foo.png.1 if foo.ps is a two-page postscript file.

So economical and elegant. I love it.

Thanks,
Carter

--

+---------------------------------+
|Carter Brey ([EMAIL PROTECTED])|
+---------------------------------+
Homepage:
http://www.nyplive.org/music/orchestra/index.cfm?page=profile&personNum=7
Fertility is hereditary. If your parents didn't have any children,
neither will you.
11:36am up 13 days, 10:41, 2 users, load average: 0.05, 0.03, 0.00





_______________________________________________
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


Reply via email to