• I have a new gallery with several images. The background on these images is transparent, however NextGen Gallery is automatically adding a black background to all “resized” images.

    I’ve done some researching and I’ve managed to find a few ppl who have been having the same problem as me, but the is not a clear and definite solution.

    Here is my gallery page, i’m using the singlepic function for nextgen.

    https://badcompanytwo.com/multiplayer/specializations/

    I’ve went into the gd.thumbnail.inc.php and changed line 651 to 255,255,255,127 following the only guide i could find on the internet.

    Here is the line of code

    $colorToPaint = ImageColorAllocateAlpha($this->workingImage,255,255,255,127);

    Can anyone give me a solution to this problem?

    Thanks sooooo much

Viewing 8 replies - 1 through 8 (of 8 total)
  • I have just noticed the same issue.

    Is gd.thumbnail.inc.php part of WordPress? Or part of something outside WP? If it is something that I cannot touch without access to the web server, I don’t think I can touch it. My site is hosted on godaddy.com

    Jason

    I found some good news, at least as far as PNG files are concerned. I noticed something, had a hunch, and did some testing.

    If you use PNG instead of GIF, and make sure the PNG image (with transparency) is saved in 24-bit mode, when you upload it you will not see black backgrounds.

    The black background issue only affects images with transparency that are stored in less than 24 bits of color depth (i.e. 8-bit images).

    Since GIF format only allows a limited 8-bit color palette, the problem will regularly affect GIFs with transparency.

    However, PNG files can be stored in either 8-bit or 24-bit. (24-bit depth allows 8 bits for red channel, 8 bits for green channel, 8 bits for blue channel, and 8 bits for the transparency channel.)

    Use 24-bit PNG images and you will get to have both transparency and nice looking thumbnails.

    Hi…

    I have the exact same issue. Almost every one of my gallery images will be a transparent .png, and I very much need to know how to fix this problem.

    My goal is to make the background of the thumbnails white instead of black. Help would be much appreciated!

    As mentioned, saving your PNG files in 24-bit mode instead of 8-bit mode will do the trick.

    DougJoseph – I’m still having this issue and my PNGs are saved as PNG-24 ??

    Works thanx

    Mistake is makes it white not transparent

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘NextGen Gallery: Transparent Images Showing Black Background with Resize’ is closed to new replies.