question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows ico files with multiple images are downsampled or not displayed

See original GitHub issue

--windows-icon-from-ico works, but seems to downsample the source image to an unsightly degree.

The following screenshot shows the problem, with the icon on the right generated by PyInstaller from the exact same source image:

image

The original image can be found here. Thanks!


python -m nuitka --version
0.6.11.6
Python: 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:43:54) [MSC v.1928 32 bit (Intel)]
Executable: C:\Users\biqqles\Documents\Python\Python38-32\python.exe
OS: Windows
Arch: x86

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Feb 8, 2021

Ok, pushed it to factory https://nuitka.net/doc/factory.html as it works for me now, selecting any icon or all icons from your icon file just works. Didn’t yet document the new option for selecting single icons, that’s future work.

1reaction
kayhayencommented, Feb 8, 2021

Thanks for the example. Nuitka surely doesn’t downsample, but Windows does. And Nuitka attempts to include all the icons, but maybe it fails in some way. I will use your example to find out what’s going on there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Some icons get their small version, even when choosing the ...
Some icons get their small version, even when choosing the bigger size. · 1. Search and Run Task Scheduler · 2. Create Task...
Read more >
ALT-TAB Application Icon Pixelated when 48x48 True Colour ...
So yeah. The answer seems simple. If you really want that backwards compatibility, just add all icon sizes in there as both true...
Read more >
How do I embed multiple sizes in an .ico file? - Super User
Show activity on this post. I have seen . ico icons that have different images for multiple sizes, eg. 16x16, 32x32, 48x48, 128x128,...
Read more >
How can I create a .ico file with all the various resolution sizes ...
You run the program, drag the png of your highest-resolution icon onto the window (I usually start at 128x128), and it generates the...
Read more >
Downsampling High Resolution photography scans for use in ...
While you could simply start with a high resolution file and "drop" the resolution to 72ppi, the resulting file would appear quite "fuzzy"...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found