great work, has some fascinating potential and smoothness.
I made a simple python script to batch convert jpeg images into .gif animations after specifying the folder in script.
import os
from PIL import Image
# folder containing the sprite sheets
folder = r"G:\1111\stable-diffusion-webui\outputs\txt2img-images\2023-01-30"
# loop through all files in the folder
for filename in os.listdir(folder):
if filename.endswith(".jpeg"):
# open the image
image = Image.open(os.path.join(folder, filename))
# split the image into frames
frames = [image.crop((i * image.width / 4, j * image.height / 4, (i + 1) * image.width / 4, (j + 1) * image.height / 4)) for i in range(4) for j in range(4)]
# save as gif animation
frames[0].save(os.path.join(folder, filename.replace(".jpeg", ".gif")),
format="gif",
save_all=True,
append_images=frames[1:],
duration=100,
loop=0)