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

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to