MoneyPrinterTurbo icon indicating copy to clipboard operation
MoneyPrinterTurbo copied to clipboard

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

Open mszhen opened this issue 5 months ago • 0 comments

语法错误:不是 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)

mszhen avatar Aug 24 '24 14:08 mszhen