ImageAlpha demo

Hi,

I am extremely pleased that alpha blending capabilities now exist in wxPython 2.5.x (which fortunately eliminates the need of my crappy PIL solution).

The sample is displayed fine, but when I replace the .png file of the sample ("toucan.png") with my own .png file with transparency, is it rendered incorrectly (see attached screenshot).

When I open "toucan.png" in Photoshop and Gimp, it is also displayed incorrectly. Which program has been used to create the .png file? I think Gimp displays some .png version info, and my files seem to always be version 2, whereas the "toucan.png" file uses version 3 format (but that is just pure speculation).

Thanks,

-Tim

alpha.png

Firebird & Opera seem to display the .png file correctly.

···

On Wed, 07 Apr 2004 13:16:55 +0200, Tim M. <terabit@gmx.de> wrote:

Hi,

I am extremely pleased that alpha blending capabilities now exist in
wxPython 2.5.x (which fortunately eliminates the need of my crappy PIL
solution).

The sample is displayed fine, but when I replace the .png file of the
sample ("toucan.png") with my own .png file with transparency, is it
rendered incorrectly (see attached screenshot).

When I open "toucan.png" in Photoshop and Gimp, it is also displayed
incorrectly. Which program has been used to create the .png file? I think
Gimp displays some .png version info, and my files seem to always be
version 2, whereas the "toucan.png" file uses version 3 format (but that
is just pure speculation).

Thanks,

-Tim

I attached a GIMP file with transparency and a screenshot of the resulting PNG replacing the ImageAlpha.py demo "toucan.png".
As far as I can tell not rendered correctly ...

Can anyone tell me how to export the GIMP file properly?

Thanks.

x.xcf (10.8 KB)

···

On Wed, 07 Apr 2004 13:16:55 +0200, Tim M. <terabit@gmx.de> wrote:

Hi,

I am extremely pleased that alpha blending capabilities now exist in
wxPython 2.5.x (which fortunately eliminates the need of my crappy PIL
solution).

The sample is displayed fine, but when I replace the .png file of the
sample ("toucan.png") with my own .png file with transparency, is it
rendered incorrectly (see attached screenshot).

When I open "toucan.png" in Photoshop and Gimp, it is also displayed
incorrectly. Which program has been used to create the .png file? I think
Gimp displays some .png version info, and my files seem to always be
version 2, whereas the "toucan.png" file uses version 3 format (but that
is just pure speculation).

Thanks,

-Tim

Tim M. wrote:

When I open "toucan.png" in Photoshop and Gimp, it is also displayed incorrectly. Which program has been used to create the .png file? I think Gimp displays some .png version info, and my files seem to always be version 2, whereas the "toucan.png" file uses version 3 format (but that is just pure speculation).

I'm not sure. I just stole that image from one of the C++ samples.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!