raspberrypi / picamera2

New libcamera based python library
BSD 2-Clause "Simplified" License
892 stars 188 forks source link

Fix for PIL version 10 #836

Closed davidplowman closed 1 year ago

davidplowman commented 1 year ago

You can no longer do:

img.mode = 'RGBX'

but the alternative:

img = img.convert(mode='RGBX')

seems to work on older PIL versions, so we'll go with that.