Or maybe add a custom paper size to your Windows system of say 2 inches high by 8 inches wide, and use that \paper for all snippet images. In Windows go to Control Panel Printers / Server Properties to add the new form, then modify paper.scm to add that same form name and size there. Then change the \paper block in the music to use the new form.
Charles Cave wrote: > > When I run lilypond with the --png command line switch, the generated > PNG file is the size of the printed page. How can I make this image small > enough > so the image is cropped? It is rather tedious to open the file with GIMP > and > manually crop the image. > > The image created from the input file below was 859 x 1111 pixels > (8.506 x 11.001 inches ... obviously the page size). > > I am running LilyPond 2.8.3 on Windows XP > > E:\>lilypond --png noscore.ly > GNU LilyPond 2.8.3 > Processing `noscore.ly' > Parsing... > Interpreting music... [1] > Preprocessing graphical objects... > Calculating line breaks... [2] > Calculating page breaks... > Layout output to `noscore.ps'... > Converting to PNG... > > > noscore.ly contains: > > \version "2.8.3" > > \score { > \context Staff \relative c'' { c8 c c16 c c c } > \layout{ > \context { > \Staff > \remove Staff_symbol_engraver > } > } > } > > > > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > > -- View this message in context: http://www.nabble.com/Creating-PNG-output-of-music-snippets-is-always-the-size-of-a-page-tf1996104.html#a5541078 Sent from the Gnu - Lilypond - User forum at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user