[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Piping contents of SVG directly to stdout
From: |
William |
Subject: |
Re: Piping contents of SVG directly to stdout |
Date: |
Mon, 18 Jul 2022 18:54:45 +0000 |
Thanks for this, David. As unfortunately my method (set \header{tagline=##f}
and run lilypond -dbackend=eps —png file.ly) doesn’t work for SVGs.
-William
Sent from my iPhone
> On Jul 18, 2022, at 14:36, David Wright <lilylis@lionunicorn.co.uk> wrote:
>
> On Mon 18 Jul 2022 at 11:28:26 (-0500), DoubleFelix wrote:
>>
>>> Felix, I’m curious what you mean by cropping the file. Sounds to me like
>>> you are trying to just write a small snippet of music, maybe a few
>>> measures, and not have the output flooded by whitespace all around the size
>>> of an A4 paper? This is also similar to what I was using lilypond for and
>>> there are ways to do this without any external apps.
>>>
>>
>> Actually this is exactly what I'm trying to do. My current setup uses a
>> python library called svgpathtools to get the bounding box, then I do some
>> basic manipulation of the width, height, and viewbox parameters to trim all
>> of the excess whitespace out. Although I am very interested in how you can
>> do this without any additional utilities.
>
> I thought this ought to be very simple.
>
> The attached are shamelessly plundered from
> https://lists.gnu.org/archive/html/lilypond-user/2021-01/msg00075.html
>
> (There will be files generated, with names not including ".cropped.",
> that need to be thrown away.)
>
> Cheers,
> David.
> <one.ly>
> <one.cropped.svg>
> <many.ly>
> <many.cropped.svg>
- Re: Piping contents of SVG directly to stdout, (continued)
Re: Piping contents of SVG directly to stdout, William, 2022/07/18
- Re: Piping contents of SVG directly to stdout, Henning Hraban Ramm, 2022/07/18
- Re: Piping contents of SVG directly to stdout, DoubleFelix, 2022/07/18
- Re: Piping contents of SVG directly to stdout, David Wright, 2022/07/18
- Re: Piping contents of SVG directly to stdout, DoubleFelix, 2022/07/18
- Re: Piping contents of SVG directly to stdout,
William <=
- Re: Piping contents of SVG directly to stdout, Jean Abou Samra, 2022/07/19
- Re: Piping contents of SVG directly to stdout, DoubleFelix, 2022/07/19
- Re: Piping contents of SVG directly to stdout, Jean Abou Samra, 2022/07/19
- Re: Piping contents of SVG directly to stdout, DoubleFelix, 2022/07/19
Re: Piping contents of SVG directly to stdout, Silvain Dupertuis, 2022/07/18
Re: Piping contents of SVG directly to stdout, DoubleFelix, 2022/07/18
Re: Piping contents of SVG directly to stdout, Jean Abou Samra, 2022/07/19
Re: Piping contents of SVG directly to stdout, David Wright, 2022/07/19
Re: Piping contents of SVG directly to stdout, Andrew Bernard, 2022/07/18