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

convert("RGB") fails for RGBa #6706

Closed
bigcat88 opened this issue Oct 31, 2022 · 0 comments · Fixed by #6708
Closed

convert("RGB") fails for RGBa #6706

bigcat88 opened this issue Oct 31, 2022 · 0 comments · Fixed by #6708

Comments

@bigcat88
Copy link
Contributor

What did you do?

Called PIL.Image.Image.convert(mode='RGB') for an RGBa image

img = PIL.Image.open('premultiplied_alpha.heic').convert(mode='RGB')

What did you expect to happen?

Conversion of data to RGB colorspace.

What actually happened?

ValueError: conversion from RGBa to RGB not supported

What are your OS, Python and Pillow versions?

  • OS: macOS 12.6
  • Python: 3.10
  • Pillow: 9.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants