flopp / py-staticmaps

A python module to create static map images with markers, geodesic lines, etc.
MIT License
128 stars 17 forks source link

Alternative methods to saving an image #40

Closed dannyboi07 closed 1 week ago

dannyboi07 commented 1 week ago

Hi! I'm creating my map through the cairo renderer, but I would like to keep the resulting image in-memory, as binaryIO, etc, rather than saving it to disk. Will then upload where necessary after the image is in memory. Is this possible?

dannyboi07 commented 1 week ago

I found help here: https://pycairo.readthedocs.io/en/latest/tutorial/pillow.html#integration-with-pillow