Vector graphics are commonly found today in the
SVG,
WMF,
EPS,
PDF,
CDR or
AI types of
graphic file formats, and are intrinsically different from the more common raster graphics file formats such as
JPEG,
PNG,
APNG,
GIF,
WebP,
BMP and
MPEG4. The
World Wide Web Consortium (W3C) standard for vector graphics is
Scalable Vector Graphics (SVG). The standard is complex and has been relatively slow to be established at least in part owing to commercial interests. Many web browsers now have some support for rendering SVG data but full implementations of the standard are still comparatively rare. In recent years, SVG has become a significant format that is completely independent of the resolution of the rendering device, typically a
printer or display monitor. SVG files are essentially printable text that describes both straight and curved paths, as well as other attributes. Wikipedia prefers SVG for images such as simple maps, line illustrations, coats of arms, and flags, which generally are not like photographs or other continuous-tone images. Rendering SVG requires conversion to a raster format at a resolution appropriate for the current task. SVG is also a format for animated graphics. There is also a version of SVG for mobile phones called SVGT (SVG Tiny version). These images can count links and also exploit anti-aliasing. They can also be displayed as wallpaper. CAD software uses its own vector data formats, usually proprietary formats created by software vendors, such as
Autodesk's
DWG and public exchange formats such as
DXF. Hundreds of distinct
vector file formats have been created for GIS data over its history, including proprietary formats like the
Esri file geodatabase, proprietary but public formats like the
Shapefile and the original
KML, open source formats like
GeoJSON, and formats created by standards bodies like
Simple Features and
GML from the
Open Geospatial Consortium.
Conversion To raster Modern displays and printers are
raster devices; vector formats have to be converted to a raster format (bitmaps – pixel arrays) before they can be rendered (displayed or printed). The size of the bitmap/raster-format file generated by the conversion will depend on the resolution required, but the size of the vector file generating the bitmap/raster file will always remain the same. Thus, it is easy to convert from a vector file to a range of bitmap/raster
file formats but it is much more difficult to go in the opposite direction, especially if subsequent editing of the vector picture is required. It might be an advantage to save an image created from a vector source file as a bitmap/raster format, because different systems have different (and incompatible) vector formats, and some might not support vector graphics at all. However, once a file is converted from the vector format, it is likely to be bigger, and it loses the advantage of scalability without loss of resolution. It will also no longer be possible to edit individual parts of the image as discrete objects. The file size of a vector graphic image depends on the number of graphic elements it contains; it is a list of descriptions.
From raster Printing Vector art is ideal for
printing since the art is made from a series of mathematical curves; it will print very crisply even when resized. For instance, one can print a vector logo on a small sheet of copy paper, and then enlarge the same vector logo to
billboard size and keep the same crisp quality. A low-resolution
raster graphic would blur or
pixelate excessively if it were enlarged from business card size to billboard size. (The precise resolution of a raster graphic necessary for high-quality results depends on the viewing distance; e.g., a billboard may still appear to be of high quality even at low resolution if the viewing distance is great enough.) If we regard typographic characters as images, then the same considerations that we have made for graphics apply even to the composition of written text for printing (
typesetting). Older character sets were stored as bitmaps. Therefore, to achieve maximum print quality they had to be used at a given resolution only; these font formats are said to be non-scalable. High-quality typography is nowadays based on character drawings (
fonts) which are typically stored as vector graphics, and as such are scalable to any size. Examples of these vector formats for characters are
Postscript fonts and
TrueType fonts. == Operation ==