akavel / rsrc

Tool for embedding .ico & manifest resources in Go programs for Windows.
MIT License
1.22k stars 122 forks source link

Multi-size icons only render as 16x16 icons in Windows #21

Closed curio77 closed 6 years ago

curio77 commented 6 years ago

Creating and embedding a multi-size icon file for Windows binaries still only has them render at 16x16, resulting in a pixelated result if scaled up (showing on the desktop, in the start menu or with a larger icon size in the Windows file system explorer). I'm not embedding a manifest, only the icon.

I have verified that the icon file itself (including sizes 16, 24, 32, 48, and 256) is OK by scaling the view with it showing in the file system explorer, resulting in a smooth view, as expected.

I suppose that there must be something about the way rsrc embeds the icon that results in Windows always rendering it as 16x16 and upscaling rather than choosing more appropriate resolutions. Any ideas?

curio77 commented 6 years ago

FWIW, the same is true if I embed separate icons (one for each size).

And also, in an application created by other means (cmake-created Qt application), the same multi-size icon works.

curio77 commented 6 years ago

OK, that was with Windows 7 (don't ask why); in Windows 10, it works just fine. :-)

curio77 commented 6 years ago

Well, not sure about Windows 7 either, but definitely affecting Windows Server 2008. Since that's ancient, let's close this.

akavel commented 6 years ago

Eh, lol, so that's apparently the case of problems resolving themselves on their own if one waits long enough ;) this being actually quite fast in this case :P thanks for the report and the closure! :) Unfortunately, it seems I'm not really actively maintaining rsrc as of now... Don't have much motivation for doing that...

curio77 commented 6 years ago

Figured as much and didn't have the time or motivation myself to investigate further. ;-)