Forums | Bug/conflict with Stripshow and .png?

You must be logged in to post Login Register

Search Forums:


 






Bug/conflict with Stripshow and .png?

UserPost

6:12 pm
September 13, 2009


lifesawitch

Texas

Member

posts 16

I love the "hide path to comic" option in the latest Stripshow, but it seems to have a problem with .png images.  For some reason the image distorts badly.  Seems okay when I un-check the hide option.

Anyone else have this problem?

8:24 pm
September 13, 2009


Brad

Admin

posts 233

Hmmm… do you know what version of PHP you're using? Maybe it's something to do with your version of GD or something. Can you send me a screenshot of what it looks like when it distorts?

8:46 am
September 15, 2009


lifesawitch

Texas

Member

posts 16

I'm using: PHP version 4.4.7

I'm also using the latest wordpress (Version 2.8.4).

12:55 pm
September 15, 2009


Brad

Admin

posts 233

Turns out the issue was with transparent PNGs. I didn't test with these.

This will be fixed in 2.1, but if you want a fix now, open stripshow.php and find the following:
$im = @imagecreatefrompng($filename);
header("Content-Type: image/png");

Replace with:
$im = @imagecreatefrompng($filename);
imagealphablending($im, true);
imagesavealpha($im, true);
header("Content-Type: image/png");



  • Donate

    While I don't maintain stripShow for a living, I wouldn't say no to a little donation, if you think the plugin is worth it...

  • Advertisements