By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

inserting image with transparent background

P: 30
Hy,
I want to insert a PNG image in to the page. in IE7 it shows perfect but in IE 6 a patch coming behind it. Then I used iepngfix.htc file for work in IE6.
Its strange in my localserver its working perfectly but when I upload it into the webserver its not working.

could anybody guide me regarding..

Thanks
Apr 1 '08 #1
Share this Question
Share on Google+
4 Replies


drhowarddrfine
Expert 5K+
P: 7,435
Double check your path names to make sure they are correct
Apr 1 '08 #2

P: 24
You can use a GIF image if you want transparent background. When you have got the PNG file open in your graphics editor, export it. And under the export options, select "Alpha transparency". That should make your GIF image transparent where your PNG was transparent instead of being white background. Hope that solves your problems.

P.S. If you can't find the option for alpha transparency for GIF file in your graphics editor, tell me which software you use and i'll help you out.
Apr 2 '08 #3

hsriat
Expert 100+
P: 1,654
The reason is that IE6 doesn't support transparent PNG images (alpha channel).
IE7 supports alpha channel, but the gamma channel of the PNG images is still not supported.
So use gif images as miraan said.

Regards

PS: I really hate IE for this!!
Apr 3 '08 #4

P: 30
You can use a GIF image if you want transparent background. When you have got the PNG file open in your graphics editor, export it. And under the export options, select "Alpha transparency". That should make your GIF image transparent where your PNG was transparent instead of being white background. Hope that solves your problems.

P.S. If you can't find the option for alpha transparency for GIF file in your graphics editor, tell me which software you use and i'll help you out.
Yes u r right. when I save the gif images in some case some white spots are coming at the boundry line of the graphic. thats why I prefer PNG images. so is there any technique to remove that white boundries.

I am using photoshop cs as a image editor
Apr 3 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.