creativescala / doodle

Compositional vector graphics in Scala / Scala.JS
https://creativescala.org/doodle/
Apache License 2.0
329 stars 76 forks source link

Update write options for images to include Base64 string #77

Closed micausti closed 5 years ago

micausti commented 5 years ago

I would like to post images generated from doodle to Twitter. The required format is Base 64 string. Currently, doodle only allows writing to png, jpg, or gif. Can you please update to allow the user to write to a Base64 string to make this process easier? Thanks!

micausti commented 5 years ago

I ended up finding a different way to do this, so I don't need the feature any longer. I think I remember you saying that you may have already written it, but I just wanted to let you know there's no rush since I have a different way. I can close the issue if you want, or leave it open. Let me know. Thanks!

mcanlas commented 5 years ago

For posterity, could you describe the process you ended up using?

micausti commented 5 years ago

I found a library (https://github.com/DanielaSfregola/twitter4s) which makes it easy to post the png, jpg, or jif as is.