Raster and vector, briefly
PNG and JPG files are raster images: grids of coloured pixels. Enlarge them and they turn blurry or blocky. Vector files such as SVG, AI, EPS, and vector PDF store shapes as mathematical paths, so they stay sharp at any size.

