2. Image tell


2.1. Tell

Use the Image.tell() method to return the current frame number, starting at 0, in the sequence file, such as a gif.
from PIL import Image

with Image.open("new_gifs/transform_tilt_x.gif") as im_gif:
    print(im_gif.tell())
    # 0