[Top][All Lists]

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

Issue 1783 in lilypond: Spaces in filenames don't work with -danti-alias

From: lilypond
Subject: Issue 1783 in lilypond: Spaces in filenames don't work with -danti-alias-factor option
Date: Wed, 27 Jul 2011 02:13:50 +0000

Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Low

New issue 1783 by address@hidden: Spaces in filenames don't work with -danti-alias-factor option

Reported by Chris Snyder:

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.


reply via email to

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