Menu

#2 Transparent PNGs have a black background

open-fixed
None
5
2007-07-11
2007-07-05
No

Transparent PNGs all have a black background, instead of showing the contents underneath.

A good test site with examples is at

http://entropymine.com/jason/testbed/pngtrans/

To reproduce in wxPython:

import wx, wx.webview

app = wx.PySimpleApp()
f = wx.Frame(None, size = (640, 480))
b = wx.webview.WebView(f)
b.LoadURL('http://entropymine.com/jason/testbed/pngtrans/')
f.Show()
app.MainLoop()

Discussion

  • Kevin Ollivier

    Kevin Ollivier - 2007-07-05

    Logged In: YES
    user_id=248468
    Originator: NO

    I've fixed this in SVN, and I will add it to the next release. (I thought there was an issue with alpha support in MSW/Linux, but it turns out that I just have to tell wxMSW/wxGTK to 'use' the alpha data once I've assigned it.)

     
  • Kevin Ollivier

    Kevin Ollivier - 2007-07-05
    • status: open --> open-fixed
     
  • Kevin Ollivier

    Kevin Ollivier - 2007-07-06

    Logged In: YES
    user_id=248468
    Originator: NO

    Fixed in the latest binary release (r20433). Please let me know if you continue to experience problems.

     
  • Kevin Ollivier

    Kevin Ollivier - 2007-07-06
    • status: open-fixed --> pending-fixed
     
  • Kevin Watters

    Kevin Watters - 2007-07-11

    Transparent PNG problem example

     
  • Kevin Watters

    Kevin Watters - 2007-07-11

    Logged In: YES
    user_id=1731802
    Originator: YES

    On second glance this doesn't appear to be totally fixed.

    Styled elements with a CSS background attribute set to a transparent PNG seem to suffer especially. They load and display correctly on the first "paint," but any subsequent paints (like if you resize the window or move another window over it) show the PNG as no longer having a transparent background. It goes back to black.

    I attached an image demonstrating the problem.
    File Added: element_bg.png

     
  • Kevin Watters

    Kevin Watters - 2007-07-11
    • status: pending-fixed --> open-fixed
     

Log in to post a comment.

Monday.com Logo