W3C home > Mailing lists > Public > www-svg@w3.org > August 2000

Re: images

From: Chris Lilley <chris@w3.org>
Date: Fri, 04 Aug 2000 18:03:14 +0200
Message-ID: <398AE942.23AE9881@w3.org>
To: RobertoBe <RobertoBe.software@teseo.com>
CC: www-svg@w3.org

RobertoBe wrote:
> Hello,
> in svg specifications I didn't find a way to embed an image in a svg
> file. Do I miss some information or image entity always point to an
> external file? I think it could be useful to have only one file rather
> than one svg and several jpg or png...

Images are included in SVG using a link, this is correct. Three image
formats are required to be supported - JPEG, PNG, and SVG.

In general, to promote re-use and cacheing efficiency, externally linked
images are best and thus http: or file: URL schemes are appropriate. Given
that HTTP/1.1 supports persistent connections, making multiple requests
from a server no longer carries the overhead it once did.

For some specialised uses (for example, SVG-enabled printers, or other
environments where only a single file can be used) the data: scheme is an
appropritate choice. SVG user agents are required to support this scheme,
for full conformance. The advantage is that the image datea is contained in
the actual URL itself, and thus in the document; the downside is that this
is an inefficient form of storage and the SVG file thus becomes larger than
the sum of the SVG file plus the native JPEG or PNG image.

For situations where a single file is sent 9for example, to a service
bureau), a more appropriate choice is to make a zip or stuffit archive of
the directory containing all SVG files, images, fonts and other resources
that are required.

Received on Friday, 4 August 2000 12:03:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:49 UTC