I do want multiple pages, i.e. a separate file for each page. I tried the script idea, and it is working great! I have exactly what I need. I will try the ‘tall-page-formats’ option when I upgrade to 2.24.
Thank you both! John From: Jean Abou Samra <j...@abou-samra.fr> Sent: Thursday, March 2, 2023 3:03 PM To: K. Blum <benbigno...@gmx.de>; lilypond-user@gnu.org; jschlom...@astound.net Subject: Re: PNG output Le jeudi 02 mars 2023 à 15:52 +0100, K. Blum a écrit : Hi John, Am 02.03.2023 um 15:16 schrieb lilypond-user-requ...@gnu.org <mailto:lilypond-user-requ...@gnu.org> : Is there any way to effect a "-fpng" using Scheme in an input file? some time ago I asked for help for a similar problem. This has been working for me: % --------------------------------------------- \version "2.24.1" #(ly:set-option 'resolution 300) #(ly:set-option 'tall-page-formats 'png) {c'} % --------------------------------------------- But you will need Ly 2.23.5 or newer. If you want to use lilypond-book-preamble.ly for cropped images, use separate-page-formats instead of tall-page-formats. Ah yes, that's right. For PNG output, normal output and separate-page output are more or less the same (since PNG files don't have multiple pages), so you can do that.