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

OSError: cannot write mode RGBA as JPEG #1506

Closed
sentry-io bot opened this issue Dec 25, 2024 · 0 comments
Closed

OSError: cannot write mode RGBA as JPEG #1506

sentry-io bot opened this issue Dec 25, 2024 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Dec 25, 2024

Sentry Issue: ROBOTOFF-27N

KeyError: 'RGBA'
  File "PIL/JpegImagePlugin.py", line 650, in _save
    rawmode = RAWMODE[im.mode]

OSError: cannot write mode RGBA as JPEG
  File "falcon/app.py", line 365, in falcon.app.App.__call__
  File "robotoff/app/api.py", line 807, in on_get
    image_response(cropped_image, resp)
  File "robotoff/app/api.py", line 952, in image_response
    image.save(fp, "JPEG")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant