完成动画序列播放

This commit is contained in:
xsl
2025-12-22 00:40:45 +08:00
parent 7b07e7fbc1
commit 29e0c1e9a8
775 changed files with 3022 additions and 654 deletions
+3 -3
View File
@@ -3,8 +3,8 @@ from PIL import Image
import os
# 全局变量定义分辨率
RESIZE_TO = (360, 360)
LARGE_IMAGE_SIZE = (2880, 2880)
RESIZE_TO = (256, 256)
LARGE_IMAGE_SIZE = (2048, 2048)
IMAGE_COUNT = 64
ROOT_DIR = '../example/src/main/assets/pic'
@@ -80,7 +80,7 @@ def main(json_file_path):
images_coordinates[image_name] = {'x': x, 'y': y}
index += 1
output_image_path = os.path.join(ROOT_DIR, folder_name, f"{folder_name}ex.png")
output_image_path = os.path.join(ROOT_DIR, f"{folder_name}ex.png")
large_image.save(output_image_path, format='png')
# 将坐标信息直接保存到new_data字典中