Tuesday, July 28, 2026
HomeLanguagesPython PIL | Image.tell()

Python PIL | Image.tell()

PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to represent a PIL image. The module also provides a number of factory functions, including functions to load images from files, and to create new images.

Image.tell()Returns the current frame number.

Syntax: Image.tell()

Parameters:
image– take an gif image.

Returns: An Image object.

Image Used:




   
  
# importing image object from PIL
from PIL import Image
  
# creating gif image object 
img = Image.open(r"C:\Users\System-Pc\Desktop\time.gif") 
img1 = img.tell() 
print(img1)


Output:

0

Another Example:Taking another gif image.

Image Used:




   
  
# importing image object from PIL
from PIL import Image
  
# creating gif image object 
img = Image.open(r"C:\Users\System-Pc\Desktop\skyhigh.gif") 
img1 = img.tell() 
print(img1)


Output:

0
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

4 COMMENTS

Most Popular

Dominic
32520 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6903 POSTS0 COMMENTS
Nicole Veronica
12017 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12115 POSTS0 COMMENTS
Shaida Kate Naidoo
7023 POSTS0 COMMENTS
Ted Musemwa
7265 POSTS0 COMMENTS
Thapelo Manthata
6980 POSTS0 COMMENTS
Umr Jansen
6973 POSTS0 COMMENTS