[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Change scale of SVG cropped output (safe mode)
From: |
Jean Abou Samra |
Subject: |
Re: Change scale of SVG cropped output (safe mode) |
Date: |
Tue, 26 Jul 2022 23:00:07 +0200 |
> Le 26 juil. 2022 à 21:52, Jean Abou Samra <jean@abou-samra.fr> a écrit :
>
>
>
>> Le 26 juil. 2022 à 20:34, William Rehwinkel <william@williamrehwinkel.net> a
>> écrit :
>>
>> Hey everybody,
>>
>> For an application I'm working on, I have lilypond outputting cropped SVG
>> incipits for user-inputted text, with safe mode enabled. Although everything
>> is working for now, the output is a little large and I would like to scale
>> down the score if possible.
>>
>> Before now, I used cropped png images instead of vector graphics for this
>> purpose, and did this via lilypond -dbackend=eps -dsafe -dresolution=57
>> --png ...
>>
>> I tried setting #(set-global-staff-size 14) but that doesn't seem to make a
>> difference, either because of safe mode or SVG output.
>>
>> Is there a way that I can do this? Anything that can be changed about the
>> input file or command-line call of lilypond to make this change, I can do,
>> if needed.
>>
>> Thanks,
>>
>> -William
>>
>> --
>> William Rehwinkel
>>
>> william@williamrehwinkel.net
>> https://williamrehwinkel.net
>
>
>
> (Off-list, please keep private) If you are accepting user-generated input, I
> strongly recommend not to rely on -dsafe. Although I haven’t had the time to
> address this so far (and I suspect it is not possible), I have found several
> breaches in it that make exploiting it easy. One of them was even discussed
> publicly some time ago on the lilypond-devel list. Instead, use --jail or
> some kind of contenerization.
>
*containerization
> Jean
>