Python PIL | Image.tell()
Last Updated :
26 Aug, 2019
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:
from PIL import Image
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:
from PIL import Image
img = Image. open (r "C:\Users\System-Pc\Desktop\skyhigh.gif" )
img1 = img.tell()
print (img1)
|
Output:
0
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...