The PDF file is generated directly from the EPS file, as far as I know. EPS and PDF files generated by LilyPond don’t actually have a resolution, because EPS is a vector image file format that relies on paths instead of a pixel grid to display graphics. These paths can be scaled to any size without quality loss regarding resolution. The PDF file just contains the EPS file and should hence have the same quality.
If you only want to generate a PNG file, you can do this using the option -fpng
, which should suppress the output of an EPS or PDF.
You can increase the resolution by setting a higher number to the -dresolution
option, such as -dresolution=300
or you use even a higher value like 600 or even 1200. The value represents dpi (dots per inch), and 300 dpi is a fairly good resolution for printed matter.
Your complete command would then be:
lilypond -fpng -dresolution=300 -dpreview -o preview/ my_file.ly
See the documentation for details.