[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: creating images for web pages
From: |
Reinhold Kainhofer |
Subject: |
Re: creating images for web pages |
Date: |
Tue, 9 Aug 2011 19:08:34 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; i686; ; ) |
Am Sonntag, 7. August 2011, 19:16:11 schrieb ed stuckems:
> Hello:
>
> I'm trying to create images of lilypond output to be included in web
> pages. I've been able to do it but the process is extremely labour
> intensive and I've got to believe there's a more efficient way. Can
> someone please comment on ways to improve my process or suggest a
> different strategy?
Whenever I needs images to include in a LaTeX document or on a webpage, I
simply use the following command call:
LILYPOND_LOGLEVEL=BASIC lilypond -drelative-includes -dbackend=eps \
-dpreview -dno-aux-files --pdf --png -dpixmap-format=pngalpha -o out/ \
FILENAME.ly
This creates FILENAME.{pdf,eps} and FILENAME.preview.{eps,pdf,png} in the out/
directory. -dpreview ensures that the *.preview.* images are cropped, and -
dpixmap-format=pngalpha makes the background of the png images transparent.
There's no need to specify a line width (i.e. paper size) for single-line
snippets, because one-line snippets are layed out with ragged-right.
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
* Financial & Actuarial Math., Vienna Univ. of Technology, Austria
* http://www.fam.tuwien.ac.at/, DVR: 0005886
* LilyPond, Music typesetting, http://www.lilypond.org