posit-dev / great-tables

Make awesome display tables using Python.
https://posit-dev.github.io/great-tables/
MIT License
1.42k stars 48 forks source link

save() does not support exporting to jpeg #343

Closed machow closed 1 month ago

machow commented 1 month ago

I'm not sure if this is a bug, or unsupported, but I get this error.

from great_tables import GT, exibble

GT(exibble).save("test.jpeg")
OSError: cannot write mode RGBA as JPEG

(Seems okay to support or not support)

rich-iannone commented 1 month ago

It’s odd but I also don’t think people will want to save as jpeg anyway (format is better for photos and such).

machow commented 1 month ago

That's fair! I'll close for now, and if someone wants it we can always reopen :)