lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

min size svg, how to


From: David Pirotte
Subject: min size svg, how to
Date: Fri, 26 Feb 2021 02:44:51 -0300

Hello

1-      crop

I am trying to produce 'min sized' svg images, but I fail. As an
example:

\version "2.22"

\paper{
  indent=0\mm
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
  bookTitleMarkup = ##f
  scoreTitleMarkup = ##f
  page-breaking = #ly:one-line-breaking
}

\layout {
}

\relative {
  g'4 f e f
  g2 c,
  \bar "|."
}

which I compile using this command:

        lilypond -dcrop --svg test-2.ly

I obtain the attached image (screenshot of eog test-2.svg ...], where
one can see it has been horizontally cropped, but not vertically, how
can I achieve a crop in both direction?


2-      [crop/staff] margins?

If I succeed to crop in both direction, is there a way, using variables
further adjust top, left, bottom, right (staff) margins?

Thanks,
David
        

Attachment: test-2.png
Description: PNG image

Attachment: pgpF7WGAiKesw.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]