from PIL import Image
import os

def create_ico(input_path, output_path):
    img = Image.open(input_path)
    # Standard Windows icon sizes
    icon_sizes = [(256, 256), (128, 128), (64, 64), (48, 48), (32, 32), (16, 16)]
    img.save(output_path, format='ICO', sizes=icon_sizes)
    print(f"Created {output_path} from {input_path}")

if __name__ == "__main__":
    create_ico("examples/win-dictation/icon.png", "examples/win-dictation/icon.ico")



