From: Charles I. K. <tn...@li...> - 2002-11-29 22:57:53
|
Hello, On Tue, 2002-11-26 at 19:57, Lauris Kaplinski wrote: [...] > On Tue, 2002-11-26 at 14:11, rob wrote: > > Ah OK I see. I'm curious as to whats wrong with embedding it in the > > SVG? > > You loose human-readability if tiny SVG content is buried > between handful of 100+k images. > The same seeking problems arise - well-designed binary files > can be accessed randomly - XML not. etc. If you wanted to stick with SVG stuff, and still keep the binary stuff from being embedded. Then how about using something like e-mail attachments. Where you'd have a file format like: MIME-Version: 1.0 Content-Type: Multipart/Related; ... --1384742970-528400789-1038535322=:5880 Content-Type: image/svg+xml <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG April 1999//EN" "http://www.w3.org/Graphics/SVG/svg-19990412.dtd"> <svg width="4in" height="3in"> <desc>Just some SVG code</desc> <g> <rect x="20" y="30" width="100" height="80"/> <image xlink:href="cid:12345" /> <image xlink:href="cid:abcde" /> </g> </svg> --1384742970-528400789-1038535322=:5880 Content-Type: image/png Content-ID: <12345> ... The PNG Image Data goes here... --1384742970-528400789-1038535322=:5880 Content-Type: image/png Content-ID: <abcde> ... Another PNG's Image Data goes here... --1384742970-528400789-1038535322=:5880 (Note, I left out a bunch of stuff. But hopefully it illustrates the idea. Binary data is NOT embedded. But is referred to using the "cid" type URI. But at the same time, binary data is kept in the same file.) See ya -- Charles Iliya Krempeaux, BSc ch...@re... ________________________________________________________________________ Reptile Consulting & Services 604-REPTILE http://www.reptile.ca/ |