-
-
Notifications
You must be signed in to change notification settings - Fork 295
Description
A background fact: A Windows icon file (.ico file) can contain multiple different sized images. This is used to provide optimised images at smaller sizes that look better than downsampling larger sizes. Windows documentation says "Apps should have, at the bare minimum: 16x16, 24x24, 32x32, 48x48, and 256x256."
When you pass one of these multiple-image icon files to copyResize() in the image library, it will resize all of them to the same size. It's not clear what the right behaviour is in this situation... but it's definitely not that. I don't think it's even legal to have the same size image more than once in one icon file, although it does still seem to generally work (but it looks like the first image is chosen every time).
I noticed this because the Python Flet package calls the Dart flutter_launcher_icons package, which in turn calls copyResize in image. See flet-dev/flet#6007