- From: Chris Lilley <chris@w3.org>
- Date: Fri, 04 Aug 2000 18:03:14 +0200
- 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. -- Chris
Received on Friday, 4 August 2000 12:03:24 UTC