some error related to file format maybe
ajtazer opened this issue · comments
raise OSError(f"cannot write mode {im.mode} as JPEG") from e
OSError: cannot write mode RGBA as JPEG
Yeah i am n00b so help me out
Traceback (most recent call last):
File "C:\Users\ajcoo\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\JpegImagePlugin.py", line 610, 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 "C:\Users\ajcoo\Desktop\bhai time waste\make-input.py", line 42, in <module>
cover.save(new_name, im.format, quality=100, exif=exif)
File "C:\Users\ajcoo\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\Image.py", line 2164, in save
save_handler(self, fp, filename)
File "C:\Users\ajcoo\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\JpegImagePlugin.py", line 612, in _save
raise OSError(f"cannot write mode {im.mode} as JPEG") from e
OSError: cannot write mode RGBA as JPEG