[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cropped SVG Output
From: |
David Sankel |
Subject: |
Re: Cropped SVG Output |
Date: |
Sat, 17 Oct 2015 12:05:57 -0600 |
On Fri, Oct 16, 2015 at 12:40 AM, Federico Bruni <address@hidden> wrote:
> Il giorno gio 15 ott 2015 alle 22:10, David Sankel <address@hidden> ha
> scritto:
>
>> I'm writing a Lilypond plugin for Sphinx and I'd like to use the SVG
>> output
>> to embed the lilypond output into html files. Compared to PNG embedding,
>> SVG will allow a single webpage to look crisp on many different devices
>> and
>> minimizes the bandwidth necessary on clients.
>>
>
> do you know that someone wrote a lilypond plugin sometime ago (it's on
> bitbucket)?
> probably not maintained anymore
Yes, I knew about this and used the code as a guide to make my own plugin.
I didn't suite my needs because that plugin only supported png output.
>
>
>> The problem I'm running into is that the SVG output option produces a SVG
>> file with a length and width of the entire page that I'm trying to render.
>> The PNG output, on the other hand, crops the score to the area with
>> visible
>> elements on it. Of course, when embedding, I'm looking for a visible area
>> crop. Does anyone know if a cropped SVG output is possible?
>>
>
> yes, try:
>
> lilypond -dpreview -dbackend=svg test.ly
Thanks. That looked promising but it unfortunately that didn't change the
output at all.
-- David Sankel
- Cropped SVG Output, David Sankel, 2015/10/15
- Re: Cropped SVG Output, Federico Bruni, 2015/10/16
- Re: Cropped SVG Output, Urs Liska, 2015/10/16
- Re: Cropped SVG Output,
David Sankel <=
- Re: Cropped SVG Output, Federico Bruni, 2015/10/18
- Re: Cropped SVG Output, David Sankel, 2015/10/28
- Re: Cropped SVG Output, David Sankel, 2015/10/28
- Re: Cropped SVG Output, Simon Albrecht, 2015/10/28
- Re: Cropped SVG Output, Urs Liska, 2015/10/28
- Re: Cropped SVG Output, Paul Morris, 2015/10/28