I've tried over the last 2 hours and scouring the interweb to try and get this module to do anything.

I've enabled the module, and have specified ".fixpng" (excluding quotes, and I've also tried fixpng, pngfix, .pngfix or whatever) and my code in the page.tpl.php is:

<div class="fixpng"><img height="97" width="167" src="blahblah/section-home.png" /></div>

I've also tried <div class=".fixpng" .... <div id="fixpng ... etc and in IE 5.5 and 6 I see a non-transparent png.

Can someone give me an example of their configuration and page code?

When I view the page source I see:

<script type="text/javascript" src="/sites/all/modules/pngfix/jquery.pngFix.js"></script>
<script type="text/javascript">$(document).ready(function(){ $('.fixpng').pngFix(); });</script>

... so the module is definitely installed.

I'm in Drupal 5.7.

Thanks in advance.

Comments

robloach’s picture

Does the JavaScript work at all for you? Because if not, then it definitely is a problem with the JavaScript.
http://jquery.andreaseberhard.de/pngFix/

dean.p’s picture

Hi, the JavaScript is not doing anything. I might try again tonight as I think I was using 32bit png's instead of 24bit if that makes any diff.

chadcross’s picture

Did you go to "administer > site configuration > PNG fix" in your navigation? That will take you to a page where you can add classes of html elements you need fixed. There are some instructions on that page.

seutje’s picture

wouldn't u have to specify the img tag in ur case?

hankpalan.com’s picture

I don't know if this helps but I have my image under an id instead of class...so I put #subscribe instead of .subscribe and it worked perfectly.

betoaveiga’s picture

Check this...

I was having the same problem, go to: admin/settings/pngfix

Then enter and save the name of the class that you will use on DIVs to contain your PNG graphics. Ex. ".pngfix"

My mistake was that I entered "pngfix" instead of ".pngfix" (in admin/settings/pngfix), so nothing happened.

Using ".pngfix" the module works fine for me.

Finally, my code looks like this...

Only local images are allowed.

Good luck!

drecute’s picture

Hi,

I think the comment made by _sack, saying "I think I was using 32bit png's instead of 24bit" is being overlooked.

I just want to be clear on this. What png bit is required ? 32bit or 24bit.

Please I need some clearance, cos I have been on this for about 3 hours now. The code is interpreted like this;

<div id="header"> 
    	<div id="header_banner"> 
        	<div id="logo"> 
                    <a href="/" title="Home"><img src="files/logo.png" alt="Home" /></a>                          
                </div> 
        </div>
</div>

Thanks.