Loading ...
Sorry, an error occurred while loading the content.

Re: [svg-developers] images in SVG

Expand Messages
  • Phi Tran
    ... Just to make life easier Data URI work on FF, Opera. IE does not ship one ... here is the link of the one for IE
    Message 1 of 5 , Jul 4, 2006
    • 0 Attachment
      On 7/4/06, Erik Dahlström <ed@...> wrote:
      >
      >
      >
      > On Tue, 04 Jul 2006 14:51:50 +0200, arnorro <yahoo@...> wrote:
      >
      > > Hello,
      > >
      > > I want to integrate binary images (mainly PNG) into a SVG document.
      > >
      > > The library I write generates SVG images which will be used in web
      > > environments. I need to know several things about the images (like
      > > size and format) before I am able to put them into the SVG, therefore
      > > I need a local path as input from the user. If I link the images in a
      > > web environment I would need an absolute path from the docroot (or the
      > > same relative path in both cases, but I can't enforce this). The
      > > library generates other output formats, so that I can't enforce
      > > special configuration options like a webpath for images for SVG. Or
      > > more exact:
      > > I do not want to do this ;) .
      > >
      > > So I am looking for a way to really integrate the binary data in the
      > > SVG. I imagine something like a CDATA section which I link in the
      > > image element. To make it even worse, this solution should work with
      > > Gecko, Adobe SVG viewer and Opera.
      > >
      > > I was not able to find something like this ia Google, or by looking at
      > > the RFC. The RFC only mentiones paths for the image element.
      > >
      > > Best regards,
      > > Kore
      >
      > Is sounds like it's the data URI scheme you're looking for?
      > An example:
      >
      > http://www.w3.org/Graphics/SVG/Test/20030813/htmlframe/full-struct-image-04-t.html
      >
      > For more information on data URI:s see here for example:
      > http://en.wikipedia.org/wiki/Data_Uri
      >
      > Regards
      > /Erik




      Just to make life easier Data URI work on FF, Opera. IE does not ship one
      > but you and build you one I have tried on IE 5,6 supposingly it should work
      > on 7.

      here is the link of the one for IE
      http://www.codeproject.com/internet/DataProtocol.asp it's simple.

      Best luck.

      Phi



      --
      > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
      >
      >
      >
      >
      >
      >
      > -----
      > To unsubscribe send a message to:
      > svg-developers-unsubscribe@yahoogroups.com
      > -or-
      > visit http://groups.yahoo.com/group/svg-developers and click "edit my
      > membership"
      > ----
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
      >


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.