Traditional Culture Encyclopedia - Traditional virtues - What are the common moving image file formats?

What are the common moving image file formats?

1, GIF

GIF (original meaning is "Graphics Interchange Format"), GIF file data, is a lossless compression format based on the LZW algorithm of continuous color tone, it is not part of any application. Its compression rate is generally about 50%, it does not belong to any application program. GIF format can store multiple color images, if the data stored in a file of multiple images read out and displayed on the screen, can constitute a simplest animation.

2, SVG format

An open-standard vector graphics language that allows you to design exciting, high-resolution Web graphics pages. Users can depict the image directly in code, can open the SVG image with any word processing tool, by changing part of the code to make the image interactive features, and can be readily inserted into the HTML to be viewed through the browser.

Expanded Information:

A GIF image consists of a number of pixels, each of which is assigned a color, and which, taken together, make up the image. GIF uses the Lempel-Zev-Welch (LZW) compression algorithm, which supports up to 256 colors. Because of this characteristic, GIF is more suitable for pictures with fewer colors, such as cartoon shapes, company logos and so on. If you come across occasions where you need to use true colors, then the expressive power of GIF is limited.

GIF usually comes with a color palette, which stores the various colors that need to be used. In Web applications, the file size of the image will significantly affect the download speed, so we can optimize the palette according to the characteristics of the GIF with a palette to reduce the number of colors used in the image (some of the image can not use the color can be discarded), without affecting the quality of the image.