The two main ways to store images are:

1. Raster graphics: Raster graphics store images as a grid of pixels, with each pixel containing color and brightness information. This format is commonly used for digital photography and images created or edited in bitmap-based software like Adobe Photoshop. Raster graphics have fixed resolution and are resolution-dependent, meaning they can lose quality when resized or scaled up.

2. Vector graphics: Vector graphics store images as a series of mathematical equations and geometric shapes. Instead of using pixels, vectors use points, lines, curves, and shapes to represent images. This format is commonly used for logos, icons, and illustrations. Vector graphics have infinite resolution and are resolution-independent, meaning they can be scaled up or down without losing any quality.