Initial commit

This commit is contained in:
Milan Stute
2021-03-03 14:35:18 +01:00
commit 52dde375e3
93 changed files with 8048 additions and 0 deletions
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 671 KiB

+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env python3
import os
from PIL import Image
basename = "OpenHaystackIcon"
imformat = "png"
export_folder = "../../OpenHaystack/OpenHaystack/Assets.xcassets/AppIcon.appiconset"
export_sizes = [16, 32, 64, 128, 256, 512, 1024]
with Image.open(f"{basename}.{imformat}") as im:
for size in export_sizes:
out = im.resize((size, size))
outfile = os.path.join(export_folder, f"{size}.{imformat}")
out.save(outfile)