I have some lilypond files that need to be modified so that the text is larger so that they can be added to Presentation slides and still be readable.
The process requires a few different steps.
Change the font size as follows (vim substitute command)
s/huge/sans \\fontsize #3.8/
Modify the source file so that the number of lines of text will fit approximately on half of a half page.
Convert the pdf that is generated by Lilypond to a png or jpg file while keeping the quality.
convert \
-verbose \
-density 150 \
-trim \
test.pdf \
-quality 100 \
-flatten \
-sharpen 0x1.0 \
24-18.jpg