Add FileBow Windows app, Store identity and optional Ko-fi link
This commit is contained in:
commit
65cebb31ca
139 files changed
+375057
No files matched your search
@@ -0,0 +1,18 @@
|
||||
from PIL import Image
|
||||
from pathlib import Path
|
||||
root=Path(__file__).resolve().parents[1]
|
||||
source=Image.open(root/'assets/icon.png')
|
||||
target=root/'store/Assets';target.mkdir(parents=True,exist_ok=True)
|
||||
for name,size in [('StoreLogo',50),('Square44x44Logo',44),('Square71x71Logo',71),('Square150x150Logo',150),('Square310x310Logo',310)]:
|
||||
for scale in [1,1.25,1.5,2,4]:
|
||||
dimension=round(size*scale);image=source.resize((dimension,dimension),Image.Resampling.LANCZOS)
|
||||
suffix='' if scale==1 else f'.scale-{int(scale*100)}'
|
||||
image.save(target/f'{name}{suffix}.png')
|
||||
for scale in [1,1.25,1.5,2,4]:
|
||||
image=Image.new('RGBA',(round(310*scale),round(150*scale)), '#14161b')
|
||||
mark=source.resize((round(114*scale),round(114*scale)),Image.Resampling.LANCZOS)
|
||||
image.alpha_composite(mark,((image.width-mark.width)//2,(image.height-mark.height)//2))
|
||||
suffix='' if scale==1 else f'.scale-{int(scale*100)}';image.save(target/f'Wide310x150Logo{suffix}.png')
|
||||
for size in [16,24,32,48,256]:
|
||||
source.resize((size,size),Image.Resampling.LANCZOS).save(target/f'Square44x44Logo.targetsize-{size}_altform-unplated.png')
|
||||
source.resize((300,300),Image.Resampling.LANCZOS).save(root/'store/StoreListingLogo.png')
|
||||
Reference in new issue
Block a user