[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

Have image background color=page color


Have a few logos that I would like to use on a web page.  Whenever I place the images on the page I get a white box with the logo inside.  I would like the white box to be the same color as the page.  Is there a particular term for this and how can I accomplish it?

Thanks
0
mjmccormick
Asked:
mjmccormick
  • 2
  • 2
  • 2
  • +4
1 Solution
 
weedCommented:
You can either make the stuff outside the image the same color as your page background before you save it, OR make it transparent, Save For Web, and select your web page color as the Matte color.
0
 
shamstarCommented:
you might be getting a border with your image when its in the html page, to make sure this isnt happening, open your html page in a text editor such as notepad and then look for the relevant IMG tag.  you just need to add "border=0" to the tag to remove the boder if it actually is a html border.
Your tag would then look like this:

<img src="logo1.jpg" alt="" height="131" width="472" border="0">
0
 
ThePCNerdCommented:
I know it could be done with java but I don't know how to do it in php, quickly that is.

I would recoomend adding a field to the entries for storing the table bgcolor

If you really want automation try searching ambient color finder, or another such term.

The term you are looking for is ambient color.
0
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 
leoumarCommented:
The only way is to chage the extra color(white) to the color you want.you can use any image editor like adob photoshop and use the tool (Magic tool) to select the white color then you delete it, after doing so save the picture transparent.
0
 
ThePCNerdCommented:
Ignore my last comment I didn't understand the question.

In addition to leoumar's last comment...

You must also save the file as GIF format with alpha transparency selected in teh transparency menu.

If you email me the files I will email you back the finished images. ***Email address edited out by PE Weed***
0
 
weedCommented:
PCNerd: keep all correspondence to the EE discussion board. This isnt a place to get free work done. Also, I removed your email address to save you from the inevitable heaps of spam.
0
 
mightofnightCommented:
Do you have adobe photoshop?
0
 
Muhammad Ahmad ImranDatabase DeveloperCommented:
I have adob photoshop.....!
0
 
mightofnightCommented:
There are many ways to remove the white.  my favorite is to change the blending in the layerstyle properity.  the only problem is that it's hard to remove 100% of the white you will still get some white on the edges.. and or you will start to lose part of the logo.  If you can get away with it a simple fix is to add a small stroke to the picture of white.  here is a expamle

http://www.aperfectpage.com/uptown/pages/plaques.php

i added a small graident stroke to the picture which help spice up hte otherwise plain logo.

i still need to finish that template so it has some rough edges.. but you get the point
0
 
ro0t88Commented:
Telling us what format the images are in and what editing software you have is the best way for us to answer your question.  I'm sure if you do that, you will have a suitable answer in no time.
0
 
leoumarCommented:
I think  ro0t88 says the right thing.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now