Scalable Vector Graphics
Scalable Vector Graphics
SVG allows
three types of graphic objects:
Vector graphic shapes (e.g. paths consisting of straight lines and curves, and areas bounded by them) curves Raster graphics images (e.g. bitmap / digital i ( bit di it l images) ) Text (Text can be in any XML namespace suitable to the application)
However, the W3C recommendation for SVG animation explicitly prefers SMIL, rather than ECMAScript, as the standard for animation in SVG
Support in applications
Inkscape is an open source SVG drawing program Sodipodi is another free/open source SVG editing program, on which Inkscape is based. Ad b Ill t t Adobe Illustrator supports b th th import and t both the i t d export of SVG images. CorelDRAW has an SVG export and import filter filter. Xara Xtreme has an SVG export and import filter in its free/open source Linux version. Microsoft Visio can save files in the SVG format as well as the SVG compressed format p
Compression
If storage space is an issue, SVG images (which are just text files) can be saved with gzip compression, in which case they may be called "SVGZ files". SVGZ files . Because XML contains verbose text, it te ds tends to co p ess very well and these compress e y e a d t ese files can be much smaller than the o g a original.
Mobile Profiles
Because of industry demand, two mobile p profiles were introduced with SVG 1.1:
SVG Tiny (SVGT) SVG Basic (SVGB).
These are subsets of the full SVG standard, mainly intended for user agents with limited capabilities. In particular, SVG Tiny was defined for highly restricted mobile devices such as cellphones, and S G Basic d h ll h d SVG was defined for higher level mobile devices, such as PDAs
SVG Shapes
SVG has some predefined shape elements that can be used and manipulated by developers: Rectangle <rect> Circle <circle> Ellipse <ellipse> Line <line> Polyline <polyline> Polygon <polygon> Path <path>
SVG Filters
SVG Filters is used to add special effects to shapes and text. You can use multiple filters on each SVG element. l t
feBlend feColorMatrix feComponentTransfer feComposite p feConvolveMatrix feDiffuseLighting feDisplacementMap feFlood feGaussianBlur feImage feMerge feMorphology feOffset feSpecularLighting feTile feTurbulence feDistantLight fePointLight
Radial Gradients