Images can be compressed in various ways, however. The size of raster image files is positively correlated with the number of pixels in the image and the color depth (bits per pixel).
A common method for displaying digital image information has historically been rasterization. Image files are composed of digital data in one of these formats so that the data can be displayed on a digital (computer) display or printed out using a printer. A 3D image can be represented within a 2D format, as in a stereogram or autostereogram, but this 3D image will not be a true light field, and thereby may cause the vergence-accommodation conflict. Some image file formats support transparency. For graphic design applications, vector formats are often used. If the data is compressed, it may be done so using lossy compression or lossless compression. The data stored in an image file format may be compressed or uncompressed. Most formats up until 2022 were for storing 2D images, not 3D ones. There are many formats that can be used, such as JPEG, PNG, and GIF. For the camera sensor format, see Image sensor format.Īn image file format is a file format for a digital image.