Hello everybody again,

so today I started working with charts as images rendered by PHP. I wanted to ask what do you guys think about encoding images in the HTML using base64 like this:

<imgsrc="data:image/gif;base64,R0lGODlhUAA....j5+g4JADs=" />

I thought about these pros and cons.

First of all pros:
Cons
The only real problem that I see is the longer script execution times. However all the charts will be generated only on user request, so we can assume that the user knows that the chart is coming soon and expects to wait a little bit more.

Both techniques are easy to implement. I have already images as base64 strings working. Changing this would be a matter of minutes.

What do you think?

Martynas