完成动画序列播放
This commit is contained in:
@@ -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字典中
|
||||
|
||||
Reference in New Issue
Block a user