We have a script that displays PNGs uploaded to out DB on a page with a white background.
This works perfectly fine for 99% of the images.
Where it does not work is when the uploaded PNG is white-on-transparent, in which case we just see nothing but white space.
I'm wondering if there is a way to automatically detect such images and add a dark background for the div where the PNG is displayed?