On Wed, Sep 19, 2012 at 07:54:01AM -0300, Manuel Kaufmann wrote: > On Tue, Sep 18, 2012 at 10:58 PM, James Cameron <qu...@laptop.org> wrote: > > Neat. What method did you use to convert the image? > > Python... It is my best friend :) > > >>> import base64 > >>> base64.b64encode(open('browse-logo.png', 'r').read()) > > See you,
Thanks. In the end I used bash and the base64 program from debian coreutils. echo "<a href=\"$1\">$1</a> <a href=\"$1.hex\">(hex)</a><p><img src=\"data:image/png;base64,$(base64 $1.png)\"><p>" >> index.html -- James Cameron http://quozl.linux.org.au/ _______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel