SVG
How it works
An SVG document is XML that describes a 2D scene in a defined coordinate system (the viewBox attribute). Primitive elements — e.g. <rect>, <circle>, <path>, <text> — define shapes, while presentation attributes or CSS rules give them fill, stroke and other styling. Each element is a node in the DOM, so JavaScript can create, modify and attach events to it, enabling interactivity. Animation can be defined, among other ways, in SMIL embedded in the SVG. A browser or other renderer parses the XML and draws the vectors at the requested size. Because the whole scene is text, it can be generated programmatically or by a language model emitting SVG code.
Problem solved
Raster image formats (JPEG, PNG) store a fixed pixel grid, so they lose sharpness when enlarged and are hard to edit programmatically or localize. SVG solves this by describing graphics as vectors in text-based XML: the image scales to any size without loss of quality and can be searched, indexed, compressed and modified with code. For AI systems this means an image format a model can generate directly as text.
Strengths & limitations
Components
Graphic primitives such as <rect>, <circle>, <path>, <text>.
The viewBox attribute maps document coordinates onto the render area.
Fill, stroke and other styling via CSS or presentation attributes.
Official
Each element is a DOM node accessible to JavaScript.
Official
SMIL embedded in SVG defines element timing and motion.
Official
Implementation
Some SVG 2 features are not fully implemented, and SMIL animation is deprecated in some engines.
SVG can contain JavaScript, so untrusted SVG files can be an XSS attack vector.
A large number of elements and paths can strain rendering compared with raster.
Evolution
The W3C begins developing an XML-based vector graphics standard.
The first official W3C Recommendation defining SVG.
Specification modularization and mobile profiles.
Extended mobile profile.
Errata with no new features.
The next major version; to date it has not reached full Recommendation status.
Hyperparameters (configurable axes)
SVG variant: Full, Basic or Tiny (mobile profiles).
Defines the coordinate system and visible area that scaling depends on.
Hardware requirements
SVG is a text-based document format (XML) that is hardware-independent; rendering is done in software on CPU or GPU.