PNG images with transpency have black background

PNG thumbnails in my gallery have the transparent areas displayed as black. They also have the black background when they are inserted in certain ways or displayed in a slideshow. When actually viewed they have a white background (which is probably because it is the default background on my site). Is there any way within ZenPage to get them to default to a white background for everything?

Comments

  • Which imaging library are you using?

    If you're using GD: it doesn't properly support PNG transparency, so transparent images such as the ones you've encountered will appear with a black background. I don't think that there's any way to change that color beyond modifying the image to always have a white background.

    If you're using Imagick: it's a bug and you should file a ticket with the original of the offending image attached.
  • A few yrs later and this is still very much apparent. I am running v1.4.5.7 upon Debian Squeeze 64-Bit. The problem occurs with both GD and Imagick. I can upload any *.png formatted file with a transparent background an dI get the black background. Tried over riding using CSS and even inline styles added to image.php and album.php but I still get black. My project is for displaying web graphics so png's with transparency constitute about 90% of the images. Any help out there?

    Thx
  • acrylian Administrator, Developer
    As my colleague above said the GD libary does not support transparencies at all. So nothing we can do if you use that. If you are using the Imagick libary file a ticket please.
Sign In or Register to comment.