On 12/14/06, David Gowers <[EMAIL PROTECTED]> wrote:
> On 12/14/06, 韡武 <[EMAIL PROTECTED]> wrote:
> > The email subject says it all, though it's very long.
> > I am used to creating png images with transparent pixels/area that I can
> > safely (safe = even work with the worst browser that people call IE) use
> > on the web, the trick is to convert image with transparency to indexed
> > color with less then 256 colors, save the png image.
> > Now another challenge: I use very bright background color on the web for
> > most png-pixel-transparent images, these images look very bad if they
> > are put on dark background. And for one situation I am in now I have to
> > make these images display fine on viewers that do not support
> > transparency, e.g. xview.
> If I select the transparent area, clear it to the color I want, then clear
> it to transparency, and save with 'save background color' ON and 'save color
> values from transparent pixels' OFF, then xview uses that color correctly.
> Gimp-user mailing list
the trick is to have the image saved always with full alpha and
transparency (AND in xcf format). Then all you have to do is to have
one layer with foreground (for example an icon or a button) and
another layer under it filled with background color. Make sure that
your foreground is well adapted to any background color. Then when you
want to save your final image you save it in another file and perform
the indexing operation and give it a transparent color.
Gimp-user mailing list