使用Python和PIL:
from PIL import Imagegif = Image.open('path.gif')try: gif.seek(1)except EOFError: isanimated = Falseelse: isanimated = True
使用Python和PIL:
from PIL import Imagegif = Image.open('path.gif')try: gif.seek(1)except EOFError: isanimated = Falseelse: isanimated = True