PNG Background problem

Joomla version 1.0 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

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.
Locked
corewin
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon May 14, 2007 10:50 pm

PNG Background problem

Post by corewin » Mon May 14, 2007 10:54 pm

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?
Stupidity is Stupid

User avatar
RussW
Joomla! Exemplar
Joomla! Exemplar
Posts: 9347
Joined: Sun Oct 22, 2006 4:42 am
Location: Sunshine Coast, Queensland, Australia
Contact:

Re: PNG Background problem

Post by RussW » Tue May 15, 2007 9:07 am

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/

saetveit
Joomla! Guru
Joomla! Guru
Posts: 536
Joined: Wed Jul 12, 2006 8:11 pm
Location: Ames, IA
Contact:

Re: PNG Background problem

Post by saetveit » Tue May 15, 2007 11:47 pm

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.
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

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: PNG Background problem

Post by AmyStephen » Wed May 16, 2007 12:07 am

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! 8))

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12785
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: PNG Background problem

Post by brian » Wed May 16, 2007 12:16 am

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
tag {
background: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png', sizingMethod='scale');
}

Stage 4
edit your template index.php to include
/templates/getTemplate(); ?>/css/template_ie.css" rel="stylesheet" type="text/css" />
More info at http://alistapart.com/stories/pngopacity/
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/

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: PNG Background problem

Post by AmyStephen » Wed May 16, 2007 12:18 am

Thank Brian!

saetveit
Joomla! Guru
Joomla! Guru
Posts: 536
Joined: Wed Jul 12, 2006 8:11 pm
Location: Ames, IA
Contact:

Re: PNG Background problem

Post by saetveit » Wed May 16, 2007 12:29 am

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

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12785
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: PNG Background problem

Post by brian » Wed May 16, 2007 3:05 pm

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/

User avatar
vanganh
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu May 31, 2007 9:27 am
Location: Hanoi, Vietnam

Re: PNG Background problem

Post by vanganh » Thu May 31, 2007 9:40 am

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, ^^

User avatar
Basetballjones
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 230
Joined: Sat Jan 06, 2007 5:43 pm
Contact:

Re: PNG Background problem

Post by Basetballjones » Thu May 31, 2007 9:51 am

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.
http://www.fraganoob.com&nbsp; Putting Gamers in Control!

bagannat
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat May 26, 2007 10:25 am

Re: PNG Background problem

Post by bagannat » Thu May 31, 2007 10:11 am

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


Locked

Return to “Installation - 1.0.x”