mirror of
https://github.com/seemoo-lab/openhaystack.git
synced 2026-08-23 21:46:15 +00:00
Initial commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 671 KiB |
Executable
+17
@@ -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)
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 725 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 179 KiB |
Reference in New Issue
Block a user