PNG Background problem
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon May 14, 2007 10:50 pm
PNG Background problem
HI,
I know this is gonna sound stupid but,
I just installed joomla and when i go to change any png file its discolored
I used photoshop and tried saving it different ways but it doesn't match the background even though it looks like it should
any suggestion?
I know this is gonna sound stupid but,
I just installed joomla and when i go to change any png file its discolored
I used photoshop and tried saving it different ways but it doesn't match the background even though it looks like it should
any suggestion?
Stupidity is Stupid
- RussW
- Joomla! Exemplar
- Posts: 9347
- Joined: Sun Oct 22, 2006 4:42 am
- Location: Sunshine Coast, Queensland, Australia
- Contact:
Re: PNG Background problem
The PNG files are transparent, under IE6 and below the transparency is not translated, if you modify the files and either the application cannot manage transparent PNG's or the file is saved without transparency then yu will normally see "odd" colours for backgrounds.
Joomla! on the fabulous Sunshine Coast...
hotmango, web & print http://www.hotmango.me/
The Styleguyz https://www.thestyleguyz.com/
hotmango, web & print http://www.hotmango.me/
The Styleguyz https://www.thestyleguyz.com/
-
- Joomla! Guru
- Posts: 536
- Joined: Wed Jul 12, 2006 8:11 pm
- Location: Ames, IA
- Contact:
Re: PNG Background problem
If you are, in fact, saving the png's properly and maintaining transparency, then you can use a javascript fix to allow IE 5.5 and 6.0 to render the images correctly.
Google:
transparent png ie
to find some descriptions about how to implement the solution on your site.
Google:
transparent png ie
to find some descriptions about how to implement the solution on your site.
Tanzania Partners - A nonprofit group working with Tanzanians for progress.
Shop online and automatically make a donation! - http://www.tzpartners.org
St. Andrew's Lutheran Church, Ames, Iowa, ELCA - http://www.standrewsames.org
Shop online and automatically make a donation! - http://www.tzpartners.org
St. Andrew's Lutheran Church, Ames, Iowa, ELCA - http://www.standrewsames.org
-
- Joomla! Champion
- Posts: 7018
- Joined: Wed Nov 22, 2006 3:35 pm
- Location: Nebraska
- Contact:
Re: PNG Background problem
Might want to give JoomlaWorks Ultimate PNG Fix Plugin a try. It's offered to the community free as in beer and liberty. (Thanks Fotis! )
- brian
- Joomla! Master
- Posts: 12785
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: PNG Background problem
I tried that recently and sadly it had some undesired effects.
Instead I used this technique which I found at rockettheme
Stage 1 create an additional css file called template_ie.css
Stage 2 duplicate the lines from your main css file that refer to the png into the new file
Stage 3 edit those references so that they look similar to
Stage 4
edit your template index.php to include
Instead I used this technique which I found at rockettheme
Stage 1 create an additional css file called template_ie.css
Stage 2 duplicate the lines from your main css file that refer to the png into the new file
Stage 3 edit those references so that they look similar to
tag {
background: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png', sizingMethod='scale');
}
Stage 4
edit your template index.php to include
More info at http://alistapart.com/stories/pngopacity//templates/getTemplate(); ?>/css/template_ie.css" rel="stylesheet" type="text/css" />
Last edited by brian on Wed May 16, 2007 12:20 am, edited 1 time in total.
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
-
- Joomla! Champion
- Posts: 7018
- Joined: Wed Nov 22, 2006 3:35 pm
- Location: Nebraska
- Contact:
-
- Joomla! Guru
- Posts: 536
- Joined: Wed Jul 12, 2006 8:11 pm
- Location: Ames, IA
- Contact:
Re: PNG Background problem
Brian, what undesired effects did you notice? I'd like to look out for them. I didn't know of this plugin, so I'm going to give it a shot.
Tanzania Partners - A nonprofit group working with Tanzanians for progress.
Shop online and automatically make a donation! - http://www.tzpartners.org
St. Andrew's Lutheran Church, Ames, Iowa, ELCA - http://www.standrewsames.org
Shop online and automatically make a donation! - http://www.tzpartners.org
St. Andrew's Lutheran Church, Ames, Iowa, ELCA - http://www.standrewsames.org
- brian
- Joomla! Master
- Posts: 12785
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: PNG Background problem
It totaly distorted some of the images.was pretty obvious
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
- vanganh
- Joomla! Fledgling
- Posts: 1
- Joined: Thu May 31, 2007 9:27 am
- Location: Hanoi, Vietnam
Re: PNG Background problem
Hi all,
I did met that problem like corewin and I think I did fixed if you work with Macromedia Firework.
1.Open your image (.png file that you created)
2. Open the Optimize window(panel): Choose Window/Optimize (or press F6 to open it).
3. In the Optimize window(panel..), you may choose the parameters follow this:
- Export file format: select the PNG8 (default is GIF)
- Mate: transparent (the white square with the cross red-line
- Type of transparency: select the Index Transparency (default is: Alpha Transparency)
4. Export the .png file you created --> it will create a new .PNG file for you. U may use this file.
That's what I've done and it worked fine.
Cheer, ^^
I did met that problem like corewin and I think I did fixed if you work with Macromedia Firework.
1.Open your image (.png file that you created)
2. Open the Optimize window(panel): Choose Window/Optimize (or press F6 to open it).
3. In the Optimize window(panel..), you may choose the parameters follow this:
- Export file format: select the PNG8 (default is GIF)
- Mate: transparent (the white square with the cross red-line
- Type of transparency: select the Index Transparency (default is: Alpha Transparency)
4. Export the .png file you created --> it will create a new .PNG file for you. U may use this file.
That's what I've done and it worked fine.
Cheer, ^^
- Basetballjones
- Joomla! Enthusiast
- Posts: 230
- Joined: Sat Jan 06, 2007 5:43 pm
- Contact:
Re: PNG Background problem
PNG fix was a no go for me in the same way- distorting images width-wise.
The rocket theme solution is tres-chic, leave it up to those guys to make you feel wise just by copying and pasting something
and yes, for some reason - using the fireworks method works, even in IE6- actually it will make transparencies work in Microsoft Picture and fax viewer, and it's not supposed to show transparency but a white background. I think it has to do with FW's method of applying index transparency at a ratio to the actual white of the background- sometimes if your image contains a lot of whit, setting index transparency will cause the white of your images to become transparent as well as the background. I've never really nailed down a rhyme or reasoning why it reacts in such a way.
The rocket theme version is the most preferred method I've seen as it allows you to create png's normally with no added optimization, and when you have tons of custom images like my site, this is a factor.
The rocket theme solution is tres-chic, leave it up to those guys to make you feel wise just by copying and pasting something
and yes, for some reason - using the fireworks method works, even in IE6- actually it will make transparencies work in Microsoft Picture and fax viewer, and it's not supposed to show transparency but a white background. I think it has to do with FW's method of applying index transparency at a ratio to the actual white of the background- sometimes if your image contains a lot of whit, setting index transparency will cause the white of your images to become transparent as well as the background. I've never really nailed down a rhyme or reasoning why it reacts in such a way.
The rocket theme version is the most preferred method I've seen as it allows you to create png's normally with no added optimization, and when you have tons of custom images like my site, this is a factor.
http://www.fraganoob.com Putting Gamers in Control!
-
- Joomla! Apprentice
- Posts: 19
- Joined: Sat May 26, 2007 10:25 am
Re: PNG Background problem
I got one problem after installing plugin. It's ok on Internet Explorer. But not in FireFox. I use education template from joomla works. When I explore my web-site from Firefox. It is not display properly.
this is my site address. http://www.chindwinseezar.com/cdc
please suggest me and help me. What should I do with it.
B.Regards
this is my site address. http://www.chindwinseezar.com/cdc
please suggest me and help me. What should I do with it.
B.Regards