Scalable Vector Graphics

From Wikipedia, the free encyclopedia

Jump to: navigation, search
Scalable Vector Graphics
Error creating thumbnail:
(process:12345): librsvg-WARNING **: Error loading SVG file.

File extension: .svg, .svgz
MIME type: image/svg+xml[1]
Developed by: World Wide Web Consortium
Initial release September 4 2001 (2001-09-04)
Latest release 1.2T / August 10, 2006
Type of format: vector image format
Extended from: XML
Website w3.org/Graphics/SVG/
Scalable Vector Graphics

SXBL
SVG Working Group
Comparison of layout engines (SVG)

 This box: view  talk  edit 

Scalable Vector Graphics (SVG) is an XML specification and file format for describing two-dimensional vector graphics, both static and animated. SVG can be purely declarative or may include scripting. Images can contain hyperlinks using outbound simple XLinks.[2] It is an open standard created by the World Wide Web Consortium's SVG Working Group.

Contents

[edit] Overview

SVG was developed during the period 1999–2008 by a group of companies within the W3C after the competing standards PGML (developed from Adobe's PostScript) and VML (developed from Microsoft's RTF) were submitted to W3C in 1998. SVG drew on experience designing both those formats.

Image:Bitmap VS SVG.svg
This image illustrates the difference between bitmap and vector images. The vector image can be scaled indefinitely without loss of image quality, while the bitmap cannot.

SVG allows three types of graphic objects:

Graphical objects can be grouped, styled, transformed, and composited into previously rendered objects. SVG does not directly support z-indices[3] that separate drawing order from document order for objects, which is a drawback with respect to other vector markup languages like VML. Text can be in any XML namespace suitable to the application, which enhances searchability and accessibility of the SVG graphics. The feature set includes nested transformations, clipping paths, alpha masks, filter effects, template objects and extensibility.

[edit] Printing

While being primarily designated as a vector graphics markup language, the specification is also designed with the basic capabilities of a page description language, like Adobe's PDF. It contains provisions for rich graphics, and is also compatible with the CSS specification's properties for styling purposes; thus, unlike XHTML and XSL-FO which are layout-oriented languages, SVG is a fully presentational language[4]. A much more print-specialized subset of SVG (SVG Print, authored by Canon, HP, Adobe and Corel) is currently a W3C Working Draft[5].

[edit] Scripting and animation

SVG drawings can be dynamic and interactive. Time-based modifications to the elements can be described in SMIL, or can be programmed in a scripting language (e.g., ECMAScript). The W3C explicitly recommends SMIL as the standard for animation in SVG[6], however it is more common to find SVG animated with ECMAScript because it is a language that many developers already understand, and it is more compatible with existing renderers. A rich set of event handlers such as onmouseover and onclick can be assigned to any SVG graphical object.

[edit] Compression

SVG images, being XML, contain many repeated fragments of text and are thus particularly suited to compression by gzip, though other compression methods may be used effectively. Once an SVG image has been compressed by gzip it may be referred to as an "SVGZ" image; with the corresponding filename extension. The resulting file may be as small as 20%[7] of the original size.

[edit] Development history

SVG was developed by the W3C SVG Working Group starting in 1998, after Macromedia and Microsoft introduced Vector Markup Language (VML) whereas Adobe Systems and Sun Microsystems submitted a competing format known as PGML. The working group was chaired by Chris Lilley of the W3C.

Personal tools
AD Links