JPEG is the most common and popular bitmap format. The form got its name from the name of the organization-developer Joint Photographic Experts Group. Files of this format are used today in all digital cameras and cameras. They have a good compression ratio and support 24-bit color depth. Since such compression significantly reduces image size with virtually no loss of quality, JPEG format is widespread on the Internet. However, the stronger the compression, the worse the quality. In addition, the JPEG format does not support the transparency option.
CGM is an example of an open vector graphics format and an international standard designed to store and share graphic data. We are talking about raster and 2D vector graphics, text. CGM, that is, Computer Graphics Metafile, is a format that is designed to support the needs of various graphics applications. Any graphic element in such a file can be described both in binary and in text format. At first it was used for clip art libraries. However, the new versions, which are based on the ISO / IEC 8632 standard, have found application in automated drawing design. At the moment, the format is used in design, aviation and other technical fields. Consortium World Wide Web Consortium has developed a profile of the use of CGM on the network - WebCGM. CGM files are encoded using three methods. This is binary encoding, that is, file encoding according to the standard. Allows software products to read a file faster. Then comes character-based encryption. Provides the smallest size option, which saves disk space, and also facilitates the rapid transfer of data. The third type of encryption is text based. With it, users will be able to read and understand the contents of the file, as well as modify it using a basic text editor.