返回

python-OSError:无法将模式P写入JPEG

发布时间:2022-06-25 09:48:59 247
# node.js

https://github.com/ClarityCoders/AutoTube. 我已经删除了ImageMagik-6中的Ghostscript格式类型。我在linux Ubuntu服务器上运行它,发现了错误。

 Traceback (most recent call last):
  File "main.py", line 31, in 
    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 {
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报
评论区(0)
按点赞数排序
用户头像