• Resolved syncbox

    (@syncbox)


    anyone have a solution for the way that rotate.php (used in a folder to randomly serve up an image in that folder) breaks the pngbehavior.htc fix for IE browsers?

    png32 images work with pngbehavior.htc but break in IE if the image is randomly selected with a rotate.php script.

    if you have a solution, I sure would like to know it!

    tia

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter syncbox

    (@syncbox)

    OK, no response. maybe I didn’t explain what the issue is?

    pngbehavior.htc is a way of fixing png32 transparency problems in IE6. Works great… (google pngbehavior.htc for info)

    but when the image is randomly selected by using the rotate.php script in a folder of images, somehow the png fix doesn’t get applied… the img reference is in footer.php, so that is being pulled into a page template along with header.php and sidebar.php.

    Is there someway to get IE to process the footer and rotate php pages BEFORE it applies the png fix? I’ve tried preloading the images involved but it does nothing.

    This is killing me.

    Thread Starter syncbox

    (@syncbox)

    OK, found the problem – just wanted to report on what it is and how I fixed it. The images being replaced randomly and then processed to support transparency in IE need widths and heights.

    doh!

    Hey, that’s clever of you to figure that out!

    Thread Starter syncbox

    (@syncbox)

    thanks, i think? is it good form to come back and provide the answer? a lot of the time, I figure it out after posting and since I took folks’ time to read my posts, i would want to give back if i find a solution?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Try this one instead: https://www.twinhelix.com/css/iepngfix/

    I think it’ll work with automatic sized images.

    Not that it probably matters much. IE7 was released via automatic update a couple days ago. You should start seeing the dropoff of IE6 within the month.

    Ok so i know this is an old thread but i am having the exact same trouble and i am using the twin helix htc file and when i called the rotate.php i gave it a width and height as i would a regular image and still nothing. the site is Here The bubble on the right is what i am trying to make transparent. Help!!!

    I hate to revisit a 4 month old thread but this was the most timely and the closest to what I just dealt with.

    There are more than few transparent png fixer things on the web.. and they all attempt to work rather well until you run into a situation where you are using a script to generate the image and the png doesn’t actually have a .png extension.

    My solution for this was to use mod_rewrite to rewrite the image url so that I could embed a .png in a page the same way I would any static image. The result, for example, is that

    myscript.php?image=bleh becomes bleh.png and all the fixes that look for .png find a .png

    ??

    Since I just dealt with this, I thought I would pass on that tidbit, should anyone else have similar trouble.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘using rotate.php with IE pngbehavior.htc fix’ is closed to new replies.