Forum Moderators: not2easy

Message Too Old, No Replies

Help Me Out Here Please...

Graphic Needs Transparency...

         

Brian07002

6:41 pm on Sep 4, 2004 (gmt 0)

10+ Year Member



Hi There,

First off, the important part of this question is I am using a gradient filled background for my website...No image, just pure html code to produce the gradient filled background.

Now,

I have just created an image using Xara X, and I am having a problem trying to make it transparent (this would be because of the gradient background, I know).

How could I get the *best* transparency possible for my images that would 'sit' directly on top of the gradient filled background?

Note: I know about html tables and filling the table background with a solid color, and using a solid color for the background of my image will do the trick, but how could I get the images' background color transparent to the gradient filled background on my website? This would make it so:

1. I Wouldn't have to use a table with a solid background color or use a border, and...

2. You wouldn't see the outter border 'residue' left behind from the image like on my image right now.

You can see *exactly* what I mean by going to:

<snip>
Thank you in advance!

-Brian

[edited by: korkus2000 at 12:55 pm (utc) on Sep. 7, 2004]
[edit reason] No site reviews please [/edit]

daosmith

6:26 am on Sep 5, 2004 (gmt 0)

10+ Year Member



Sounds like you need to save the image as an 8-bit PNG (or GIF) with transparency enabled - you will need an image editor like Photoshop or Paintshop Pro to do this; I have no experience with Xara so I don't know if it can export to a PNG file.

netguy

12:20 pm on Sep 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Brian, as daosmith said, a standard transparent GIF will work fine. When you are against such a gradient background, you'll find the best results are with transparent GIFs 'without' any drop shadows.

jetnovo

4:56 am on Sep 6, 2004 (gmt 0)

10+ Year Member



Hi Brian

I see on your site why a standard transparent gif won't help; because you have diagonal edges on the image in question.

My experience in web isn't great, but from what I understand the use of PNGs is not a good move due to limited support across browsers. Apparently the PNG standard isn't used everywhere.

Perhaps you could consider removing the gradient background (although it does look quite nice), or else maybe modify the border of the troublesome image so that there are no external diagonal edges.

Sorry I can't be more help.

JayCee

5:55 am on Sep 6, 2004 (gmt 0)

10+ Year Member



This is a pretty common problem, and one of the major reason NOT to use backgrounds that are not solid colors. There is no solution, AFAIK.

8 bit .png images are no better than .gif, as far as edge artifacts go, since they are both 8 bit (not enough resolution for sharp edges).

In theory, you would use a 24 bit .png, instead of a .gif. With the added resolution of 24 bit, the edges will look very nice (but the file size will be much larger).

That's the theory.

But when a client of mine recently demanded such a background (against my advice), i tried a 24 bit .png. Looked very nice in Dreamweaver - but MSIE 6 rendered it as a solid color, instead of transparent.

Happily, i got help from their corporate logo graphics guru in convincing them not to use a non-solid background - after wasting a lot of time making samples to show them how bad it looked.

My advice is to forget your gradient background, at least until the browsers do a better job rendering 24 bit .png.

mhulse

9:23 am on Sep 11, 2004 (gmt 0)

10+ Year Member



I have strugled with transparency for long time... a transparent gif kinda does the trick... but after doing tons of searching, the best technique I found was this:

[leon.vicnet.net.au...]

"And it works on IE5.5, IE6, Gecko, Opera and kde (all PC, MAC, Linux)"

"...There are drawbacks, but they're pretty obvious ones. The AlphaImageLoader is not valid CSS (Damn! Can't submit a design to Zen Garden with it, which is why I wanted to do this in the first place) and it will not work in Netscape4, WinIE5, or MacOpera6. People have that it dose not work in other browsers to, but have confused my doge CSS with the method not working."

I thought I heard something about CSS3 having support for transparancy?

Anyway, hope that helps...

mhulse

9:32 am on Sep 11, 2004 (gmt 0)

10+ Year Member



Btw... #*$!? Why do browsers (IE PC) not support PNG's... Geeez... c'mon, this is 2004! Dang, png is far superior to gifs! I don't get it!

I dream of a web where all browsers, and all computers display content equally!

Peace!