Skip to content

Commit

Permalink
Merge pull request gperciva#5 from brownian/master
Browse files Browse the repository at this point in the history
trimtagline.sh: second argument for image resolution
  • Loading branch information
gperciva committed Oct 4, 2011
2 parents 28c34a1 + 12c2dc1 commit 1d5df1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bug-squad/trimtagline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@

ly=${1:?Usage: $0 test[.ly]}

# resolution for image generation (default 150):
res=${2:-150}

# strip extension, if any:
lynoext=${ly%%.ly}

# process test file:
echo "\\header { tagline = ##f }" | lilypond -dinclude-settings=- --png $ly
echo "\\header { tagline = ##f }" | lilypond -dinclude-settings=- -dresolution=$res --png $ly

# trim PNG:
convert ${lynoext}.png -trim ${lynoext}-trim.png
Expand Down

0 comments on commit 1d5df1f

Please sign in to comment.