mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-03 19:33:07 +03:00
Use snake case
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
646b4a4ecd
commit
5732a86cc6
|
@ -46,12 +46,10 @@ def _save_all(im: Image.Image, fp: IO[bytes], filename: str | bytes) -> None:
|
||||||
|
|
||||||
mpf_offset = 28
|
mpf_offset = 28
|
||||||
offsets: list[int] = []
|
offsets: list[int] = []
|
||||||
total = 0
|
im_sequences = [im, *append_images]
|
||||||
imSequences = [im] + list(append_images)
|
total = sum(getattr(seq, "n_frames", 1) for seq in im_sequences)
|
||||||
for imSequence in imSequences:
|
for im_sequence in im_sequences:
|
||||||
total += getattr(imSequence, "n_frames", 1)
|
for im_frame in ImageSequence.Iterator(im_sequence):
|
||||||
for imSequence in imSequences:
|
|
||||||
for im_frame in ImageSequence.Iterator(imSequence):
|
|
||||||
if not offsets:
|
if not offsets:
|
||||||
# APP2 marker
|
# APP2 marker
|
||||||
ifd_length = 66 + 16 * total
|
ifd_length = 66 + 16 * total
|
||||||
|
|
Loading…
Reference in New Issue
Block a user