> >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


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to