lilypond-user
[Top][All Lists]
Advanced

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

RE: Horizontalized scores


From: Chris Crossen
Subject: RE: Horizontalized scores
Date: Mon, 17 Feb 2014 16:51:27 -0700

> >Chris Crossen:
> > The trick to getting the crisp horizontal and vertical lines while
> > still getting anti-aliased curves is the ghostscript option ->
dGraphicsAlphaBits.
> > When Lilypond produces a .png file it set this to 4. If you set it to
> > 1 instead, you get horizontal and vertical lines that aren't
anti-aliased.

> David Kastrup:
> Not just horizontal and vertical lines.  Also things like circles.  The
appearance
> of, say, { b\1 b\2 b\3 b\4 } is a downside to this approach.
> 
> I just remembered another option:
> 
> Convert to PDF with -dstrokeadjust and then convert PDF to PNG with
> pdftocairo.  This approach is likely one of the slowest, but it's
basically what I
> used to batch-test what PDF previewers like Evince would be likely to
deliver.
> 

You're right. I tried your sample with my approach and see the problem.

Do you have any suggestions for options to use with pdftocairo? 

I tried pdf2cairo -png input.pdf output.png

and the output wasn't anywhere near as good as what I see if I look at the
pdf with preview on my Mac. 

It's frustrating that a PDF viewer does such a great job of rasterizing the
image and the only way I can get an equivalent .png is to take a screen shot
of it.

Chris Crossen




reply via email to

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