Import current DEMON v0.19 source, assets and development handoff

This commit is contained in:
JariKo
2026-10-28 15:39:06 +02:00
commit 2b9ae06592
347 changed files with 14404 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
from pathlib import Path
from PIL import Image
import shutil
root=Path(__file__).resolve().parent.parent
source=root/'Demon_v0.18_Windows/captures/v018'
target=root/'Demon_v0.18/captures/v018'
target.mkdir(parents=True,exist_ok=True)
for prefix,count,name in [('catwalk-',48,'catwalk-preview.webp'),('catwalk-side-',24,'catwalk-side-preview.webp')]:
frames=[]
for i in range(count):
with Image.open(source/f'{prefix}{i:02}.png') as image:frames.append(image.convert('RGB').resize((960,540),Image.Resampling.LANCZOS))
frames[0].save(source/name,save_all=True,append_images=frames[1:],duration=42,loop=0,quality=82,method=4)
with Image.open(source/name) as image:assert image.n_frames==count
shutil.copy2(source/name,target/name)
print(name,(source/name).stat().st_size)
for name in ['catwalk-06.png','catwalk-side-12.png']:shutil.copy2(source/name,target/name)