Tk Source Code

View Ticket
Login
Ticket UUID: fb35eb59dd18603f8e47133d04573a14aa802e80
Title: PNGs on Mac OS X displaying incorrectly
Type: Bug Version: 8.6.2
Submitter: anonymous Created on: 2014-10-11 00:21:53
Subsystem: 41. Photo Images Assigned To: kevin_walzer
Priority: 5 Medium Severity: Severe
Status: Closed Last Modified: 2014-10-14 10:43:08
Resolution: Fixed Closed By: kevin_walzer
    Closed on: 2014-10-14 10:43:08
Description:
All PNG images I have tested have a translucent background where they should be 100% transparent. The same result appears whether the image is displayed as a canvas item or as part of a ttk::label widget (I don't think I've tried a non-ttk label widget).

This image illustrates the problem:
https://cdn.mediacru.sh/SYfnMG7d_E9f.png

Here is the source PNG shown in the image above:
https://cdn.mediacru.sh/_mrBnMR3FVz3.png

Here is where I suspect the problem lies:
https://github.com/tcltk/tk/commit/a6f4a5d2b811d3d5a547ca0164a499eb40c18153

This commit was after 8.6.1 and before 8.6.2 release dates. It fixed the initial PNG problem on OS X Mavericks, and I'm guessing it introduced this new, more subtle problem on apparently all versions of OS X.

Paul Walton
User Comments: anonymous added on 2014-10-14 02:57:00:
Actually, I think the subtle problems only occurred on OS X 10.6 and later, the issue being that Apple changed their default gamma correction with the release of Snow Leopard.  Most likely, this patch will cause subtle problems on OS X 10.5 and earlier.  Not that many people are still using OS X 10.5 ...

- Marc

kevin_walzer added on 2014-10-14 02:29:57:
Patch committed from Marc Culler, thanks for the bug report.