素材
用 save for web 处理后
最终效果
在 photo shop 中处理有点慢,批处理动作时有一次鼠标点击的动作。
想请问各位,有没有小巧方便点的软件来处理这种。
GIF 素材:https://www.123pan.com/s/nbylVv-T2FZv.html
素材
用 save for web 处理后
最终效果
在 photo shop 中处理有点慢,批处理动作时有一次鼠标点击的动作。
想请问各位,有没有小巧方便点的软件来处理这种。
GIF 素材:https://www.123pan.com/s/nbylVv-T2FZv.html
python,做成单个函数,在弄个循环就ok了
import random
import string
from PIL import Image, ImageSequence
animated_image = Image.open("阿.gif")
static_image = Image.open("阿.png")
frames = []
for frame in ImageSequence.Iterator(animated_image):
new_frame = Image.new("RGBA", animated_image.size)
new_frame.paste(static_image, (0, 0))
new_frame.paste(frame, (0, 0), frame.convert('RGBA'))
frames.append(new_frame)
characters = string.ascii_lowercase + string.digits
random_string = ''.join(random.choices(characters, k=16))
frames[0].save(f"{random_string}.gif", save_all=True, append_images=frames[1:], loop=0)
完全无 python 基础。