renpy icon indicating copy to clipboard operation
renpy copied to clipboard

Jaggies on game icons

Open bober-gith opened this issue 1 year ago • 4 comments

This isn't important, just a small something I noticed: image The icon for Ren'py is 250x250 which is big and results in a pixellated icon when downsized by the OS. Maybe something closer to the target would diminish the jaggies.

bober-gith avatar Sep 06 '23 12:09 bober-gith

Having tried it out, it doesn't seem to help. I believe we'd need new SDL APIs to address this.

renpytom avatar Dec 02 '23 02:12 renpytom

Maybe some info that could help... (For Windows) At the time, I tried setting "window_icon.png" inside game/gui at an arbitrary 60x60 just to try it instead of 250x250 and this got rid of the jaggies.

The window_icon.png at 250x250: icon

The window_icon.png at 60x60: window_icon

Before (250X250): image

After (60X60): image

However was not able to find where the icon for Ren'py launcher itself was located. And 60x60 was pretty arbitrary, I think the icon for the taskbar is usually 24x24, not sure.

[Edit: https://windhawk.net/mods/taskbar-icon-size it seems to be 32x32 that display as 32x32 on w10, and on w11 get displayed as 24x24.]

I don't know if this icon used for both mac and windows os, if that's the case and mac icons need to be bigger, maybe having two different icons could work.

bober-gith avatar Dec 02 '23 09:12 bober-gith

Good icon construction is an art in itself, and while Ren'Py provides a basic version of this for convenience, a better option for those wanting to tailor their icons to a greater degree is to create and manage the ico (win) and icns (mac) files themselves, per https://www.renpy.org/doc/html/build.html#special-files. That way you have full control not only of the primary image quality, but also of the various resolution steps.

mal avatar Dec 02 '23 11:12 mal

Definitely, it's something that requires attention at the creator level, but the link for building icons is hmm the icon of the actual exe of the game, but windows os displays not that one in the window/taskbar but "window_icon.png" inside game/gui (I guess something similar is happening for the Ren'py launcher itself). It's solvable right now by making "window_icon.png" smaller in size, however uncertain how it behaves on another os to have it much lower without an alternative ( ̶i̶f̶ ̶i̶t̶'̶s̶ ̶c̶a̶l̶l̶e̶d̶ ̶w̶i̶n̶d̶o̶w̶_̶i̶c̶o̶n̶,̶ ̶m̶a̶y̶b̶e̶ ̶t̶h̶a̶t̶ ̶m̶e̶a̶n̶s̶ ̶o̶n̶l̶y̶ ̶u̶s̶e̶d̶ ̶b̶y̶ ̶w̶i̶n̶d̶o̶w̶s̶,̶ ̶s̶o̶ ̶m̶a̶y̶b̶e̶ ̶t̶h̶a̶t̶'̶s̶ ̶n̶o̶ ̶p̶r̶o̶b̶l̶e̶m̶?̶ It probably means the icon of the window of ren'py). I think when you have a sort of embedded "icon" with precise dimensions this usually leads the creator to respect that dimension, which can lead to most Ren'py games having that problem inadvertently on windows os. This is very much not an important issue, just to explain why I opened this thing in the first place.

bober-gith avatar Dec 02 '23 11:12 bober-gith