MyBB Community Forums

Full Version: PNG Avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
But my avatar is the right size and i have to manually add a background for it to work.
Ok, then it may just be a bug in GD period. Nothing MyBB can do about that either.
It might be - but I've noticed on another one of my frequent websites, apparently vBulletin would add a black background when resizing, but IPB didn't when we switched to it. I'd have to assume it's an issue with the resizing script as opposed to something in GD. The IPS communit forums also resize correctly.
Weird. Oh well. I'm not a graphics expert. I guess staff will need to field this Smile
I was interested in this, so I decided to take a look.
This appears to work for me.

In inc/functions_image.php, find:
// Attempt to preserve the transparency if there is any
Add before:
if($imgtype == 3)
{
   imagealphablending($thumbim, false);
   imagesavealpha($thumbim, true);
}
Pages: 1 2