×
Namespaces

Variants
Actions

Introduction to svg

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: User:Soku123 (14 Jun 2007)
Last edited: hamishwillee (16 Nov 2011)
What is SVG?
   * SVG stands for Scalable Vector Graphics
   * SVG is used to define vector-based graphics for the Web
   * SVG defines the graphics in XML format
   * SVG graphics do NOT lose any quality if they are zoomed or resized
   * Every element and every attribute in SVG files can be animated
   * SVG is a World Wide Web Consortium (W3C) recommendation
   * SVG integrates with other W3C standards such as the DOM and XSL

SVG History & Advantages

SVG 1.1 became a W3C Recommendation in January 2003.

Sun Microsystems, Adobe, Apple, IBM, and Kodak are some of the organizations that have been involved in defining SVG.

Advantages of using SVG over other image formats (like JPEG and GIF) are:

  • SVG files can be read and modified by a large range of tools (e.g. notepad)
  • SVG files are smaller and more compressible than JPEG and GIF images
  • SVG images are scalable
  • SVG images can be printed with high quality at any resolution
  • SVG images are zoomable. Any part of the image can be zoomed without degradation
  • Text in SVG is selectable and searchable (excellent for making maps)
  • SVG works with Java technology
  • SVG is an open standard
  • SVG files are pure XML

The main competitor to SVG is Flash.

The biggest advantage SVG has over Flash is the compliance with other standards (e.g. XSL and the DOM). Flash relies on proprietary technology that is not open source.

A drawback of SVG at the moment is that not all browsers support it. Mozilla browsers, Firefox, and Opera support SVG, and Microsoft plan to support SVG.

The number of SVG editors are growing, and Adobe GoLive 5 supports SVG.


SVG Filters


The available filters in SVG are:

  • feBlend
  • feColorMatrix
  • feComponentTransfer
  • feComposite
  • feConvolveMatrix
  • feDiffuseLighting
  • feDisplacementMap
  • feFlood
  • feGaussianBlur
  • feImage
  • feMerge
  • feMorphology
  • feOffset
  • feSpecularLighting
  • feTile
  • feTurbulence
  • feDistantLight
  • fePointLight
  • feSpotLight

SVG Gradients A gradient is a smooth transition from one color to another. In addition, several color transitions can be applied to the same element.

There are two main types of gradients in SVG:

   * Linear Gradients
   * Radial Gradients
This page was last modified on 16 November 2011, at 05:28.
31 page views in the last 30 days.