treeform / pixie-python

Full-featured 2D graphics library for Python.
MIT License
95 stars 2 forks source link

support encodeImage method #12

Closed RobBrazier closed 2 years ago

RobBrazier commented 3 years ago

I see there is an encodeImage proc in the nim library, would it be possible to support that as well as the already existing write_file() in the python layer?

https://nimdocs.com/treeform/pixie/pixie.html#encodeImage%2CImage%2CFileFormat

guzba commented 3 years ago

Could you describe how you'd use this API and what you'd expect to get for a datatype back? This would be the first time we return a "binary blob" back, which is not an actual string and thus has Python encode() / decode() implications.

treeform commented 2 years ago

Sorry closing for now. We may export some thing that uses the bytes as a way to transfer encoded images, but we currently have no pans to implement this.