Raster images are composed of pixels and do not scale well, as enlarging an image causes pixels to become visible and image quality to degrade. Vector images use mathematics to define objects as paths rather than pixels, allowing them to be scaled to any size without quality loss. Raster images are better for photos while vector images are better for logos and illustrations that may need resizing.