On Mon 04 Jul 2011, 17:15 I wrote:
> On Mon 04 Jul 2011, 16:17 I wrote:
> > For windows I would try to start with .cmd like this:
> This seems to work (tested under VirtualBox, WinXP):
Sorry for the noise, final ("initial") version is so far:
rem --------------8<----------------------
@echo off
rem
rem -- trimtagline.bat --
rem
rem -- Get only file name, no extension:
set LY=%~n1
IF filename%LY%==filename (
echo Usage: %0 test[.ly].
) ELSE (
echo \header { tagline = ##f } | lilypond -dinclude-settings=- --png
%LY%
rem -- This is ImageMagick's "convert.exe":
imconvert %LY%.png -trim %LY%-trim.png
)
rem
rem -- Note, you need to copy/rename convert.exe
rem -- to something like imconvert.exe
rem -- because windows already has convert.exe in the path.
rem
rem
rem -- Note, if you can not (or do not want to) install ImageMagick,
rem -- you can use this "kind of trimming":
rem echo \header { tagline = ##f } | lilypond -dinclude-settings=-
-dbackend=eps -dno-aux-files --png %LY%
rem
rem -- This will produce "almost as vertically trimmed as above" png,
rem -- but leave full "linewidth".
rem
rem --------------8<----------------------
I've added it to my fork and will ask Graham to pull it in some future,
I guess.
--
Dmytro O. Redchuk
Bug Squad
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond