To be honest I haven't figured that bit out either - I'm very new to Julia 
and very much do not know what I am doing yet. 

I found some reference code in Jewel.jl that might allow conversion from 
png to embedded png. 

function tohtml(m::MIME"image/png", img)
  HTML() do io
    print(io, """<img src="data:image/png;base64,""")
    print(io, stringmime(m, img))
    print(io, "\" />")
  end
end

What would be the best way to convert it to something that can be embedded 
into a webpage?


On Sunday, October 5, 2014 7:39:52 PM UTC+11, Andreas Lobinger wrote:
>
> I have to revise my advice, it seems there is an interface in Cairo.jl to 
> render to a IOStream, but not a buffer.
>
> Can you explain a little bit, how do you proceed after writing to a 
> IOBuffer?
>

Reply via email to