[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spaces in filenames don't work with -danti-alias-factor option

From: Chris Snyder
Subject: Spaces in filenames don't work with -danti-alias-factor option
Date: Tue, 26 Jul 2011 12:30:31 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110720 Thunderbird/6.0

When LilyPond is called with the -danti-alias-factor option (for PNG output), the scaling stage fails if the filename contains spaces. For example:

>> lilypond --png -danti-alias-factor=2 "Test file.ly"
GNU LilyPond 2.14.2
Processing `Test file.ly'
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `Test file.ps'...
Converting to PNG...pngtopnm: /home/csnyder/lilypond/versions/2.14.2/lilypond/usr/lib/libpng12.so.0: no version information available (required by pngtopnm)
usage:  pngtopnm [-verbose] [-alpha | -mix] [-background color] ...
             ... [-gamma value] [-text file] [-time] [pngfile]
GS exited with status: 256

[The version information warning can be ignored (I think) - it is always displayed when generating PNG's with an anti-alias-factor, including single-word filenames, even when it completes successfully.]

After the failed run, there are some files left over: "Test file.ps", "Test file.png.old", and "Test".

This only happens when the filename contains spaces and anti-alias-factor != 1. It looks like this is a simple fix - quote the filename where pngtopnm is called in ps-to-png.scm. I'd contribute a patch, but I'm not sure how to best quote filenames - simply adding quotes around the filename still presents problems with filenames containing quotes.


Chris Snyder
Adoro Music Publishing
Direct phone: (616) 831-2550
Web: http://www.adoromusicpub.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]