#GIFIO and Palettes
1 messages · Page 1 of 1 (latest)
While a writer can assume a colorspace, I don't know that a reader can unless you don't care if the colors display correctly. But most people do care.
@paper musk can you extract the Palette from the gif -- maybe that should be used instead of the standard ColorConverter?? I was testing with this gif:
Right now the GIF is converted to RGB565 (little endian) when stored in the Bitmap object. Mostly to send to LCDs with the least time/trouble.
Having an option to extra a bitmap+palette is a feature I'd like to add in but haven't yet.
You could use ColorConverter to convert the RGB565 to whatever is needed for the display.
@tardy shale What was the difference in the image using RGB565 vs RGB565_SWAPPED?
RGB565 colors were completely wrong. RGB565_SWAPPED looked right, though I am color deficient, so still could be somewhat wrong.
so I am wondering if the PyPortal display needs swapped, or maybe the conversion is wrong? But that would have been obvious to @paper musk
Different displays may want different Big/Little Endian so changing RGB565 or RGB565_SWAPPED may make a difference. I don't own a PyPortal so I can't easily test that.
I try take a look at it later this weekend more if you cannot get it going. Sorry just haven't been home much today to check
@ionic dew feel free to ping me on here too if you find something or hit a point you just don't know