Since I imagine your code is saved to flash and executed from there, the data will be streamed out as required, taking up no RAM unless needed.
IMO the SVG approach makes sense when you have a big vector image - for smaller things Bitmap will win out. Also while the SVG converter is doing a great job of extracting the actual data, how it's represented in Espruino could really be improved!
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'd say it depends a bit on the actual size/style of the image. Given the image you've got there, I'd basically go with Option 1.
g.setColor("#3d9ae2").drawImage(img)
Since I imagine your code is saved to flash and executed from there, the data will be streamed out as required, taking up no RAM unless needed.
IMO the SVG approach makes sense when you have a big vector image - for smaller things Bitmap will win out. Also while the SVG converter is doing a great job of extracting the actual data, how it's represented in Espruino could really be improved!
I could imagine that something like:
would really help.