Vector images are composed of lines and shapes defined by mathematical equations, so they can be scaled up without loss of quality. Raster images are made of pixels in a grid, so enlarging them reduces quality. Vector formats are best for logos, illustrations, and manipulated text, while raster formats like JPEG and PNG are best for photos. Common vector programs are Illustrator and Inkscape, while Photoshop is best for raster image editing. Raster images can be imported into vector programs and traced to convert them.