bug-lilypond
[Top][All Lists]
Advanced

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

Re: png output with transparent background


From: Jonathan Wilkes
Subject: Re: png output with transparent background
Date: Mon, 3 May 2010 13:25:33 -0700 (PDT)


--- On Mon, 4/12/10, Bertalan Fodor (LilyPondTool) <address@hidden> wrote:

From: Bertalan Fodor (LilyPondTool) <address@hidden>
Subject: Re: png output with transparent background
To: "Jonathan Wilkes" <address@hidden>
Cc: address@hidden, "Wilbert Berendsen" <address@hidden>
Date: Monday, April 12, 2010, 10:19 AM




  
  
Jonathan Wilkes wrote:

  --- On Sun, 4/11/10, Jonathan Wilkes <address@hidden> wrote:

  
  
    From: Jonathan Wilkes <address@hidden>
Subject: Re: png output with transparent background
To: address@hidden, "Wilbert Berendsen" <address@hidden>
Date: Sunday, April 11, 2010, 10:29 PM


--- On Sun, 4/11/10, Wilbert Berendsen <address@hidden>
wrote:

    
    
      From: Wilbert Berendsen <address@hidden>
Subject: Re: png output with transparent background
To: address@hidden
Cc: "Jonathan Wilkes" <address@hidden>
Date: Sunday, April 11, 2010, 9:03 AM
Op zondag 11 april 2010 schreef
Jonathan:

      
      
        Feature request: when outputting to a png file,
        
      
    
    make
    
    
      the background
      
      
        transparent instead of white.  (Or have an
        
      
    
    option
    
    
      to do this.)

This can already be done with the pngalpha device of
GhostScript.

Call LilyPond like this:

lilypond --png -dpixmap-format=pngalpha file.ly

best regards,
Wilbert Berendsen
      
    
    Thanks, Wilbert!  I tried "lilypond -dhelp" to look
around for an option 
like that but completely overlooked that one.

-Jonathan
    
  
  Ok, when I run lilypond from the command line with the following options 
it works perfectly:

lilypond --png -dpixmap-format=pngalpha -dpreview test.ly

But when I run it from jedit using lilypondtool I get an error in the 
lilypond console: "unrecognized option: foo" where foo is whatever 
I put as the default arguments in the lilypondtool plugin options.  I'm 
putting the following in the textbox for "default arguments":

--png -dpixmap-format=pngalpha -dpreview

I don't get the error if I use a single argument like "--png", or 
"dpreview".

-Jonathan

  



I think this is a bug in LilyPondTool, because it sends the whole
"default arguments" list as one argument to lilypond.



As a workaround you can try writing this to the Console window:

%lilypond --png -dpixmap-format=pngalpha -dpreview %buffer




Hi,
     When I try your workaround, I get the following error for the file test.ly

warning: cannot find file: `"/path-to/test.ly"'
error: failed files: "\"/path-to/test.ly\""

But everything works fine if I click the "run lilypond" button.

-Jonathan

 






reply via email to

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