OSERROR:无法将模式p写为JPEG

发布于 2025-02-09 23:23:30 字数 917 浏览 2 评论 0原文

嗨,我正在尝试设置此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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文