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

some error related to file format maybe #3

Open
ajtazer opened this issue Feb 14, 2021 · 0 comments
Open

some error related to file format maybe #3

ajtazer opened this issue Feb 14, 2021 · 0 comments

Comments

@ajtazer
Copy link

ajtazer commented Feb 14, 2021

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
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