Member
Member
redkobold   18-11-2010, 16:38
#1

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?

Member
Member
kagutsuchi   18-11-2010, 18:02
#2

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.

Member
Member
resmonde   19-11-2013, 04:39
#3

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

Administrator
Administrator
acrylian   19-11-2013, 11:03
#4

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.

Member
Member
resmonde   19-11-2013, 18:13
#5

Thanks for the response:
https://github.com/zenphoto/zenphoto/issues/589

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.