--- In [email protected], Andrew Shellshear <[EMAIL PROTECTED]> wrote: > > Hello SVGers, > > Is there any way in the SVG DOM of directly specifying the content of an > image, for example, as a base64 string, instead of as an IRI Reference?
Hi Andrew, Good question. The W3C have an example of embedding images in SVG on their testsuite. The direct link to the page is: http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-struct-image-04-t.html However, to make a long story short, PNG images can be embedded as: <image id="image1PNG" x="240" y="150" width="240" height="150" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA...(etc) " /> and JPEG images as: <image id="image1JPEG" x="240" y="0" width="240" height="150" xlink:href="data:image/jpg;base64,/9j/4AAQSkZJ...(etc)" /> Happy SVGing! --Sam ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

