OSERROR:无法将模式p写为JPEG
嗨,我正在尝试设置此YouTube Automaiton https://github.com/claritycoders/autotube/autotube 。 我在ImageMagik-6中删除了Ghostscript格式类型。 我正在Linux Ubuntu服务器上运行它,并且会出现错误。
Traceback (most recent call last):
File "main.py", line 31, in <module>
redditbot.save_image(post)
File "/home/ubuntu/AutoTube/utils/RedditBot.py", line 73, in save_image
scale_gif(image_path, scale)
File "/home/ubuntu/AutoTube/utils/Scalegif.py", line 19, in scale_gif
gif.save(path)
File "/home/ubuntu/.local/lib/python3.8/site-packages/PIL/Image.py", line 2240, in save
save_handler(self, fp, filename)
File "/home/ubuntu/.local/lib/python3.8/site-packages/PIL/JpegImagePlugin.py", line 631, in _save
raise OSError(f"cannot write mode {im.mode} as JPEG") from e
OSERROR:无法将模式p写为JPEG
Hi i'm trying to setup this Youtube automaiton https://github.com/ClarityCoders/AutoTube.
I have deleted the Ghostscript format types in ImageMagik-6.
I'm running it on A linux Ubuntu Server and i get the Error.
Traceback (most recent call last):
File "main.py", line 31, in <module>
redditbot.save_image(post)
File "/home/ubuntu/AutoTube/utils/RedditBot.py", line 73, in save_image
scale_gif(image_path, scale)
File "/home/ubuntu/AutoTube/utils/Scalegif.py", line 19, in scale_gif
gif.save(path)
File "/home/ubuntu/.local/lib/python3.8/site-packages/PIL/Image.py", line 2240, in save
save_handler(self, fp, filename)
File "/home/ubuntu/.local/lib/python3.8/site-packages/PIL/JpegImagePlugin.py", line 631, in _save
raise OSError(f"cannot write mode {im.mode} as JPEG") from e
OSError: cannot write mode P as JPEG
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论