lilypond-user
[Top][All Lists]
Advanced

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

Re: rendering png without page


From: Dmytro O. Redchuk
Subject: Re: rendering png without page
Date: Wed, 20 Jul 2011 09:17:44 +0300
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue 19 Jul 2011, 15:40 Phil Holmes wrote:
> Dmytro developed the following script for Ubuntu:
> 
> #!/bin/bash
> #
> #
Here is the same script for Windows, btw:
https://raw.github.com/gperciva/lilypond-extra/master/bug-squad/trimtagline.bat

> ly=${1:?Usage: $0 test[.ly]}
> 
> # strip extension, if any:
> lynoext=${ly%%.ly}
> 
> # process test file:
> echo "\\header { tagline = ##f }" | lilypond -dinclude-settings=- --png $ly
> 
> # trim PNG:
> convert ${lynoext}.png -trim ${lynoext}-trim.png
> 
> # do we want to overwrite "original" PNG?
> # mv ${lynoext}-trim.png ${lynoext}.png
> 
> 
> This assumes you have imagemagick installed.

-- 
  Dmytro O. Redchuk                        "Easy to use" is easy to say.
  Bug Squad                                             -- Jeff Garbers



reply via email to

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