質問編集履歴

1

文章表現

2021/08/19 22:40

投稿

shishi_maru440
shishi_maru440

スコア38

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,105 @@
18
18
 
19
19
  ```
20
20
 
21
+ ValueError Traceback (most recent call last)
22
+
23
+ <ipython-input-23-a14c2c5be5f7> in <module>
24
+
25
+ 5 images = list(map(lambda file: Image.open(file), files))
26
+
27
+ 6
28
+
29
+ ----> 7 images[0].save('out.gif', save_all=True, append_images=images[1:], duration=400, loop=0)
30
+
31
+
32
+
33
+ /usr/local/Caskroom/miniconda/base/envs/x86_tenso_env/lib/python3.7/site-packages/PIL/Image.py in save(self, fp, format, **params)
34
+
35
+ 2233
36
+
37
+ 2234 try:
38
+
39
+ -> 2235 save_handler(self, fp, filename)
40
+
41
+ 2236 finally:
42
+
43
+ 2237 # do what we can to clean up
44
+
45
+
46
+
47
+ /usr/local/Caskroom/miniconda/base/envs/x86_tenso_env/lib/python3.7/site-packages/PIL/GifImagePlugin.py in _save_all(im, fp, filename)
48
+
49
+ 522
50
+
51
+ 523 def _save_all(im, fp, filename):
52
+
53
+ --> 524 _save(im, fp, filename, save_all=True)
54
+
55
+ 525
56
+
57
+ 526
58
+
59
+
60
+
61
+ /usr/local/Caskroom/miniconda/base/envs/x86_tenso_env/lib/python3.7/site-packages/PIL/GifImagePlugin.py in _save(im, fp, filename, save_all)
62
+
63
+ 533 im.encoderinfo["optimize"] = im.encoderinfo.get("optimize", True)
64
+
65
+ 534
66
+
67
+ --> 535 if not save_all or not _write_multiple_frames(im, fp, palette):
68
+
69
+ 536 _write_single_frame(im, fp, palette)
70
+
71
+ 537
72
+
73
+
74
+
75
+ /usr/local/Caskroom/miniconda/base/envs/x86_tenso_env/lib/python3.7/site-packages/PIL/GifImagePlugin.py in _write_multiple_frames(im, fp, palette)
76
+
77
+ 512 im_frame = im_frame.crop(frame_data["bbox"])
78
+
79
+ 513 offset = frame_data["bbox"][:2]
80
+
81
+ --> 514 _write_frame_data(fp, im_frame, offset, frame_data["encoderinfo"])
82
+
83
+ 515 return True
84
+
85
+ 516 elif "duration" in im.encoderinfo and isinstance(
86
+
87
+
88
+
89
+ /usr/local/Caskroom/miniconda/base/envs/x86_tenso_env/lib/python3.7/site-packages/PIL/GifImagePlugin.py in _write_frame_data(fp, im_frame, offset, params)
90
+
91
+ 828
92
+
93
+ 829 # local image header
94
+
95
+ --> 830 _write_local_header(fp, im_frame, offset, 0)
96
+
97
+ 831
98
+
99
+ 832 ImageFile._save(
100
+
101
+
102
+
103
+ /usr/local/Caskroom/miniconda/base/envs/x86_tenso_env/lib/python3.7/site-packages/PIL/GifImagePlugin.py in _write_local_header(fp, im, offset, flags)
104
+
105
+ 559 pass
106
+
107
+ 560 else:
108
+
109
+ --> 561 transparency = int(transparency)
110
+
111
+ 562 # optimize the block away if transparent color is not used
112
+
113
+ 563 transparent_color_exists = True
114
+
115
+
116
+
21
117
  ValueError: invalid literal for int() with base 10: b'\x00m\x8a\t!4\xd5\x1c\xfe\xab\xf9\xf4\xdc\xbeGV\xc1^\xa0\xcf}\xd9\x7fb\xe4=\xb2D\xaa\xda\xee\xc3\xeb\x9a\xd4\x8cG\xa8^td\xe3\xee{\xc0\x8c\x92'
118
+
119
+
22
120
 
23
121
 
24
122