Vector animation uses geometrical primitives like points, lines and curves to create images made of paths and nodes that can be scaled without loss of quality. Raster animation uses a grid of pixels so images become pixelated when stretched. Lossy compression reduces file sizes by losing some data quality, especially for images, while lossless compression allows exact reconstruction but with smaller compression ratios. Different file types like .swf, .gif and .mng are used for digital animation and graphics with varying capabilities like support for animation, color depth and compression.