virtualabs / pixoo-client

Divoom Pixoo Client for Python3
63 stars 13 forks source link

This fixes the bug with some images on the Pixoo Max #4

Closed HoroTW closed 2 years ago

HoroTW commented 2 years ago

Converted the image so that pillow can quantize the colors to 256 max (adaptive to the colors in the image).

Then converted it back to an normal RGB image so that existing logic does not break. This also prevents another issue where a png which was saved with a pallete could not be loaded.

In the long run the second conversion should be removed and the palette and colors of the P mode image could be used in a more direct way.

HoroTW commented 2 years ago

This Closes #3

HoroTW commented 2 years ago

No problem, I removed the test images. I thought they might become handy ^^