Files
whisper_voice/convert_icon.py
2026-01-24 17:03:52 +02:00

15 lines
497 B
Python

from PIL import Image
import os
# Path from the generate_image tool output
src = r"C:/Users/lashman/.gemini/antigravity/brain/9a183770-2481-475b-b748-03f4910f9a8e/app_icon_1769195450659.png"
dst = r"d:\!!! SYSTEM DATA !!!\Desktop\python crap\whisper_voice\assets\icon.ico"
if os.path.exists(src):
img = Image.open(src)
# Resize to standard icon sizes
img.save(dst, format='ICO', sizes=[(256, 256)])
print(f"Icon saved to {dst}")
else:
print(f"Source image not found: {src}")