Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue while creating binary's icon #718
Hi, I'm using the new 1.10.4's feature for creating the binary's icon. But, I get this:
Anyway, if I remove that assertion, then I get this:
I've tested it and it fixes the issue.
Thanks! I've checked in several fixes: for the Python 3 incompatibility issue, and for the first assert you reported, which was caused by an awful palettize algorithm I had used to produce the 8-bpp icon sizes that will wash out rarer colors on some icons. I've now properly implemented the median cut algorithm in PNMImage which should give higher-quality results to begin with.
As a workaround for the second issue, you can make sure that your images have an alpha channel.
These fixes will be in 1.10.5.