CameraViewer
CameraViewer copied to clipboard
Fix colorscale issue with latest Pillow version
In latest version of Pillow (10.4.0), getpalette() is modified to always have length 256 This breaks the old colorscale generation code, but this code fixes it https://github.com/python-pillow/Pillow/issues/7561