james_t_2008 — 2012-05-15T05:55:06-04:00 — #1
Unfortunately images are my weak point so i need some simple guidance with this please.
I have a repeating grey image at the top of the website. However when I put the logo on top, it's white background is there. How do I make the white background transparent so the logo sits nicely on the grey colour.
I have attatched an image so you can see my dilemma.
Thanks in advance.
ralphm — 2012-05-15T09:54:36-04:00 — #2
Ideally, open the original file for the logo (Photoshop? Illustrator?) and hide the background layer. Then save as a transparent image (such as gif or png).
If you don't have the original file, or if you do but the white background is not separate, in Photoshop you can select all instances of a color (e.g. white) with the magic wand tool and then delete them. (To make sure the deleted areas end up transparent, first make sure the layer is not called "Background" in the Layers palette, so rename it first.)
If that's too vague, there are lots of tutorials online for removeing a background in Photoshop, such as http://graphicssoft.about.com/od/photoshop/l/blremovebackg.htm
slackr — 2012-05-16T00:22:08-04:00 — #3
right on all counts ralph, couldn't have said it better.
dresden_phoenix — 2012-05-16T15:19:43-04:00 — #4
Assuming you don't have the original files in PS or AI. or that they are already flattened and have the white integrated into them ( bad move), you could do the follwoing steps:
1)add a layer mask
2) copy a grayscale version of your logo into it
3) in this layer mask select the logo image
4) contract the selection by 2 or 3 pixels ( optional tweak)
5) fill selection with black
6) Adjustments->invert the layer mask
system — 2012-07-01T10:05:51-04:00 — #5
You have to use transparent png or gif image for this purpose. Don't use jpg, because it does not support transparency. And also set the image background color to transparent when styling in your css file.