Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地素材,上传jpg图片,生成报错 #481

Open
mszhen opened this issue Aug 24, 2024 · 0 comments
Open

本地素材,上传jpg图片,生成报错 #481

mszhen opened this issue Aug 24, 2024 · 0 comments

Comments

@mszhen
Copy link

mszhen commented Aug 24, 2024

语法错误:不是 TIFF 文件(标头 b'AIGC:{“S' 无效)
追踪:
File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "/MoneyPrinterTurbo/webui/Main.py", line 787, in
result = tm.start(task_id=task_id, params=params)
File "/MoneyPrinterTurbo/app/services/task.py", line 280, in start
downloaded_videos = get_video_materials(
File "/MoneyPrinterTurbo/app/services/task.py", line 130, in get_video_materials
materials = video.preprocess_video(
File "/MoneyPrinterTurbo/app/services/video.py", line 314, in preprocess_video
clip = ImageClip(material.url)
File "/usr/local/lib/python3.10/site-packages/moviepy/video/VideoClip.py", line 1002, in init
img = imread(img)
File "/usr/local/lib/python3.10/site-packages/imageio/init.py", line 97, in imread
return imread_v2(uri, format=format, **kwargs)
File "/usr/local/lib/python3.10/site-packages/imageio/v2.py", line 360, in imread
result = file.read(index=0, **kwargs)
File "/usr/local/lib/python3.10/site-packages/imageio/plugins/pillow.py", line 252, in read
image = self._apply_transforms(
File "/usr/local/lib/python3.10/site-packages/imageio/plugins/pillow.py", line 335, in _apply_transforms
meta = self.metadata(index=self._image.tell(), exclude_applied=False)
File "/usr/local/lib/python3.10/site-packages/imageio/plugins/pillow.py", line 537, in metadata
if self._image.getexif():
File "/usr/local/lib/python3.10/site-packages/PIL/PngImagePlugin.py", line 1025, in getexif
return super().getexif()
File "/usr/local/lib/python3.10/site-packages/PIL/Image.py", line 1465, in getexif
self._exif.load(exif_info)
File "/usr/local/lib/python3.10/site-packages/PIL/Image.py", line 3773, in load
self._info = TiffImagePlugin.ImageFileDirectory_v2(self.head)
File "/usr/local/lib/python3.10/site-packages/PIL/TiffImagePlugin.py", line 562, in init
raise SyntaxError(msg)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant