lilypond-user
[Top][All Lists]
Advanced

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

Re: png cropping


From: Patrick Horgan
Subject: Re: png cropping
Date: Wed, 17 Sep 2008 14:22:05 -0700
User-agent: Thunderbird 2.0.0.16 (X11/20080724)

Jonathan Kulp wrote:
I'm guessing that one of the netpbm tools will handle transparency, it's just a matter of figuring out which one. Didn't this come up on a recent thread? I seem to remember trying it out on something and getting a transparent background. When I get some time later I'll look into it. It would be simple enough to add a prompt asking if you'd like a transparent background, I guess.
Now that you mention it that rings a bell with me too! I'll have to search---

giftoppm foobar.gif | ppmtogif -transparent '#rgb' > fooquux.gif


works if you want gif. First translate to ppm, then translate back to gif with the -transparent flag specifying which color, (in this case #fff) will be transparent.

pnmtopng has the transparent argument, but pnmtotiff and jpeg don't since they don't support transparency...so, using your script, if you want transparency, you have to choose png for the output, then on the translation step from ppm just add the appropriate flags. I just tried it adding a quick -transparent '#ffffff' to the command line and then selecting png so it would work. It worked like a charm:)

Patrick


Re: the footers: are you talking about the "engraving by Lilypond" footer or some other thing?
Yep. Or the copyright statement, or the typesetter statement, et.al.

Patrick




reply via email to

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