Common image file formats (bitmaps)
Almost all image files use their own simplified format name as the file extension. From the extension you can know what format this image is stored in, and what software should be used to read/write.
One, BMP format:
This is a hardware device-independent image file format that is very widely used. It uses the bit map storage format, in addition to the image depth optional, does not adopt any other compression, therefore, the BMP file occupies a large space. BMP file Image depth selectable 1bit, 4bit, 8bit and 24bit. BMP files when storing data, the image is scanned in order from left to right, from bottom to top.
II. pcx file:
This is the image file format of the PC brush. The image depth of PCX can be selected as 1, 4, 8bit. Because this file format appears earlier, it does not support true color. PCX files are encoded with RLE stroke, and the compressed image data is stored in the file body. Therefore, when the captured image data is written in the PCX file format, it is to be RLE encoded, while reading a PCX file first to the RLE decoding, in order to further display and processing.
Third, TIFF file:
The TIFF (tagimagefileformat) file is a more general image file format developed by Aldus and Microsoft for Scanners and desktop publishing systems. The TIFF format is flexible and variable, and it defines four different formats: Tiff-b for two-value images, tiff-g for black-and-white grayscale images, tiff-p for color images with color palettes, and tiff-r for RGB true color images. TIFF supports multiple encoding methods, including RGB uncompressed, RLE compression, and JPEG compression as described below.
Four, GIF files:
GIF (Graphicsinterchangeformat) is an image file format developed by CompuServe Corporation in 1987. The data of the GIF file is compressed, and it uses a compression algorithm such as variable length. GIF image depth is from 1bit to 8bit, or GIF supports up to 256 colors of images. Another feature of the GIF format is that it can store multiple color images in a GIF file, which can form the simplest animation if multiple images stored in a file are read out and displayed on the screen.
Five PNG image file formats
The original name of PNG (portable Networf graphics), called "Portability network Image", is the most recent image file format accepted online. PNG can provide lossless compressed image files that are 30% smaller in length than GIF. It also provides 24-bit and 48-bit true color image support and many other technical support. Because PNG is very new, not all programs can use it to store image files at this time, but Photoshop can handle PNG image files, or it can be stored in PNG image file format.
VI. jpeg files:
JPEG (Jointphotographicexpertsgroup) is an image expert group composed of CCITT (International Telegraph and Telephone Advisory Committee) and ISO (Organization for Standardization). The Expert Group developed the first international standard for compressing static digital images, with the standard name "digital compression and encoding of continuous-tone still images (digitalcompressionandcodingofcontinuous-tonestillimage)", Referred to as the JPEG algorithm. This is a common standard with a wide range of applications, with the following objectives:
1, the algorithm developed in the image compression rate is/or close to the current level of science, image fidelity in a wide range of compression evaluation is "very good", "excellent" to the original image "can not be distinguished."
2, the development of the algorithm can be applied to any kind of digital image source, such as the size of the image, color space, pixel aspect ratio, the content of the image, complexity, color number and statistical characteristics are unlimited.
3, the development of the algorithm, in terms of the complexity of the calculation can be adjusted, so according to the performance and cost requirements to choose software or hardware execution.
4. The developed algorithm includes four kinds of coding methods: Sequential coding, Progressive coding, lossless compression coding and layered coding.
JPEG uses a symmetric compression algorithm, which is the same time used to compress and decompress in the same system environment. Compressed image using JPEG compression coding algorithm, the compression ratio of about 1:5 to 1:50, or even higher. The different compression ratios and their compression effects can be seen from the examples.
In general, there are two distinct types of image formats: lossy compression and lossless compression.
The difference between JPG PNG GIF BMP format