-
Notifications
You must be signed in to change notification settings - Fork 46
OSError: cannot write mode RGBA as JPEG #286
Copy link
Copy link
Closed
Description
rate_480p_namer.json.gz
Traceback (most recent call last):
File "/root/.local/share/pipx/venvs/namer/lib/python3.12/site-packages/PIL/JpegImagePlugin.py", line 666, in _save
rawmode = RAWMODE[im.mode]
KeyError: 'RGBA'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1030, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/usr/lib/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "/root/.local/share/pipx/venvs/namer/lib/python3.12/site-packages/namer/watchdog.py", line 184, in __processing_thread
handle(command)
File "/root/.local/share/pipx/venvs/namer/lib/python3.12/site-packages/namer/watchdog.py", line 81, in handle
process_file(command)
File "/root/.local/share/pipx/venvs/namer/lib/python3.12/site-packages/namer/namer.py", line 246, in process_file
add_extra_artifacts(target.target_movie_file, new_metadata, search_results, phash, command.config)
> File "/root/.local/share/pipx/venvs/namer/lib/python3.12/site-packages/namer/namer.py", line 274, in add_extra_artifacts
performer_image = get_image(performer.image, '-Performer-' + performer.name.replace(' ', '-') + '-image', video_file, config) if performer.image and config.enabled_poster and ImageDownloadType.PERFORMER in config.download_type else None
File "/root/.local/share/pipx/venvs/namer/lib/python3.12/site-packages/namer/metadataapi.py", line 263, in get_image
img.save(file, config.image_format)
File "/root/.local/share/pipx/venvs/namer/lib/python3.12/site-packages/PIL/Image.py", line 2588, in save
save_handler(self, fp, filename)
File "/root/.local/share/pipx/venvs/namer/lib/python3.12/site-packages/PIL/JpegImagePlugin.py", line 669, in _save
raise OSError(msg) from e
OSError: cannot write mode RGBA as JPEG
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels