@@ -1015,10 +1015,6 @@ def n_frames(self):
10151015 self .seek (current )
10161016 return self ._n_frames
10171017
1018- @property
1019- def is_animated (self ):
1020- return self ._is_animated
1021-
10221018 def seek (self , frame ):
10231019 """Select a given frame as current image"""
10241020 if not self ._seek_check (frame ):
@@ -1052,7 +1048,7 @@ def _seek(self, frame):
10521048 if self .__next == 0 :
10531049 self ._n_frames = frame + 1
10541050 if len (self ._frame_pos ) == 1 :
1055- self ._is_animated = self .__next != 0
1051+ self .is_animated = self .__next != 0
10561052 self .__frame += 1
10571053 self .fp .seek (self ._frame_pos [frame ])
10581054 self .tag_v2 .load (self .fp )
@@ -1087,7 +1083,7 @@ def load_end(self):
10871083
10881084 # allow closing if we're on the first frame, there's no next
10891085 # This is the ImageFile.load path only, libtiff specific below.
1090- if not self ._is_animated :
1086+ if not self .is_animated :
10911087 self ._close_exclusive_fp_after_loading = True
10921088
10931089 def _load_libtiff (self ):
@@ -1138,7 +1134,7 @@ def _load_libtiff(self):
11381134 except ValueError :
11391135 raise OSError ("Couldn't set the image" )
11401136
1141- close_self_fp = self ._exclusive_fp and not self ._is_animated
1137+ close_self_fp = self ._exclusive_fp and not self .is_animated
11421138 if hasattr (self .fp , "getvalue" ):
11431139 # We've got a stringio like thing passed in. Yay for all in memory.
11441140 # The decoder needs the entire file in one shot, so there's not
0 commit comments