How would I go about creating a new image, using python PIL, which has multiple frames in it.
new_Image = Image.new(\"I;16\", (num_pixels,num_rows))
for f
Start with a PIL image of the first frame, then save that and pass the other frame images in a list to the append_images
parameter and save them all. It works with webp
, gif
, and tiff
formats, though tiff
appears to ignore the duration and loop parameters:
im1.save(save_to, format="tiff", append_images=[im2], save_all=True, duration=500, loop=0)
See also the documentation.