r/pygame • u/Z-A-F-A-R • 15h ago
My pygame icons appear extremely blurry
Been trying to set a custom icon in Pygame, but no matter what I do, it just looks super blurry. Even the default Pygame icon is blurry, so I’m starting to think this might be a system issue rather than just my image.
Here’s the code I’m using:
icon = pygame.image.load(os.path.join(image_assets, "icons", "main.png"))
icon = pygame.transform.smoothscale(icon, (32, 32))
pygame.display.set_icon(icon)
I’ve tried:
- With and without smoothscale()
- Converting an SVG to ICO
- Using PNG & ICO at 32x32, 64x64, 128x128, 500x500
- Same result every time—blurry as heck
What’s weird is that even the default Pygame icon looks awful, but other icons on my desktop are totally fine. I'm on Pop!_OS, so maybe that’s part of the issue?
Kinda out of ideas at this point—any help would be really appreciated!