avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] gif usage


From: Theodore A. Roth
Subject: Re: [avr-libc-dev] gif usage
Date: Mon, 28 Oct 2002 15:26:32 -0800 (PST)

On Tue, 29 Oct 2002, Joerg Wunsch wrote:

:) As Theodore A. Roth wrote:
:)
:) > Here's a simple way to add transparency to a png:
:) >
:) >   $ pngtopnm malloc-std.png > malloc-std.pnm
:) >   $ pnmtopng malloc-std.pnm -transparent white > test.png
:)
:) Hmm. :)

I know it's ugly...

:)
:) I'd rather prefer if fig2dev could handle it by itself.  It seems
:) they're still actively developing it, http://www.xfig.org/
:) announces the betas for an upcoming version 3.2.4.  Since they're
:) already using pnmtopng internally, it shouldn't be too hard to
:) teach fig2dev about PNG background colors.
:)
:) I tried to make a quick patch, but it doesn't work yet...
:)
:) > I've attached the test.png. See if you browser can handle it.
:)
:) Galeon can (that's what i'm using now).  Already Netscape 4.76
:) can't handle the background transparency in PNGs although it can
:) handle it in GIFs. :-(
:)
:) > can live with this. Might need to run a check in configure that replaces
:) > pngtopnm and pnmtopng with cat if they aren't available on a system.
:)
:) Probably, yes.  Until reading the source of fig2dev, i didn't know they
:) require ghostscript and netppm, i need to add this to the prerequisites
:) of the FreeBSD packages as well...
:)
:) Please go ahead and commit that, i'll still see to send a patch to the
:) xfig maintainers anyway.

Ok, done. We can revert it if/when fig2dev can do what we wait.

BTW: One downside to picking your own background color is losing the
colors set by the CSS which affects the code examples. But of course, if
the user wishes to shoot themselves in the foot, we should let them. ;-)

Any suggestions for a background color other than white? I'm always
partial to a nice dull grey since that's easier on the eyes, but I don't
wish to force my preference on anyone. ;-)

Ted Roth





reply via email to

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