lilypond-user
[Top][All Lists]
Advanced

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

Re: Png cropping


From: David Wright
Subject: Re: Png cropping
Date: Sat, 25 Feb 2017 09:31:21 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat 25 Feb 2017 at 02:26:53 (-0700), Klaus Blum wrote:
> Hi Renato, hi Andrew,
> 
> Andrew Bernard wrote
> > why would you use backend = eps if you are generating a PNG file? I think
> > you can omit that.
> 
> The auto-cropping features only work with the EPS backend which can also be
> used to generate PNG or PDF output. 
> Making use of 
>     \include "lilypond-book-preamble.ly"
> has the same effect.
> 
> 
> Renato-23 wrote
> > How can I produce a png with some nonzero margins? I've tried to add
> > top-margin, bottom-margin, top-system-spacing, last-bottom-spacing,
> > left-margin, right-margin, paper-width, but none of them seem to work
> 
> I'm afraid that it won't work out of the box. The cropping seems to take
> place after the image is composed and doesn't care about margin or indent
> settings. 
> My only idea would be to place invisible stuff around like, 
>     \set Staff.instrumentName = \markup \with-color #white "X"
> but I don't think this will result in a usable workflow.

I tried lilypond-book last year and IIRC it even does things like
stripping off the opus from the top system and reassembling the
cropped fragments itself, so workarounds like this might not work
in any case.

> Maybe it's easier to add margins with an image editor that has automatic
> batch processing like IrfanView.

Cheers,
David.



reply via email to

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