SESSION END 23:40 - Complete visual overhaul. New folder structure (Ground/Veg/Env). Generated final assets (Style 32 Dark-Chibi). Implemented GrassScene_Clean.js with density logic. Scene PERFECT.
This commit is contained in:
18
scripts/utils/resize_image.py
Normal file
18
scripts/utils/resize_image.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from PIL import Image
|
||||
import sys
|
||||
import os
|
||||
|
||||
def resize_image(image_path, size):
|
||||
try:
|
||||
img = Image.open(image_path)
|
||||
img = img.resize((size, size), Image.Resampling.LANCZOS)
|
||||
img.save(image_path)
|
||||
print(f"Resized {image_path} to {size}x{size}")
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 3:
|
||||
print("Usage: python resize.py <path> <size>")
|
||||
else:
|
||||
resize_image(sys.argv[1], int(sys.argv[2]))
|
||||
Reference in New Issue
Block a user