JPEG is a used method of lossy compression for digital images for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality. JPEG achieves 10:1 compression with little perceptible loss in image quality. JPEG compression is used in a number of image file formats. JPEG/Exif is the most common image format used by digital cameras and other photographic image capture devices; these format variations are not distinguished, are called JPEG. The term "JPEG" is an initialism/acronym for the Joint Photographic Experts Group, which created the standard; the MIME media type for JPEG is image/jpeg, except in older Internet Explorer versions, which provides a MIME type of image/pjpeg when uploading JPEG images. JPEG files have a filename extension of.jpg or.jpeg. JPEG/JFIF supports a maximum image size of 65,535×65,535 pixels, hence up to 4 gigapixels for an aspect ratio of 1:1. "JPEG" stands for Joint Photographic Experts Group, the name of the committee that created the JPEG standard and other still picture coding standards.
The "Joint" stood for ISO TC97 WG8 and CCITT SGVIII. In 1987, ISO TC 97 became ISO/IEC JTC1 and, in 1992, CCITT became ITU-T. On the JTC1 side, JPEG is one of two sub-groups of ISO/IEC Joint Technical Committee 1, Subcommittee 29, Working Group 1 – titled as Coding of still pictures. On the ITU-T side, ITU-T SG16 is the respective body; the original JPEG Group was organized in 1986, issuing the first JPEG standard in 1992, approved in September 1992 as ITU-T Recommendation T.81 and, in 1994, as ISO/IEC 10918-1. The JPEG standard specifies the codec, which defines how an image is compressed into a stream of bytes and decompressed back into an image, but not the file format used to contain that stream; the Exif and JFIF standards define the used file formats for interchange of JPEG-compressed images. JPEG standards are formally named as Information technology – Digital compression and coding of continuous-tone still images. ISO/IEC 10918 consists of the following parts: Ecma International TR/98 specifies the JPEG File Interchange Format.
The JPEG compression algorithm operates at its best on photographs and paintings of realistic scenes with smooth variations of tone and color. For web usage, where reducing the amount of data used for an image is important for responsive presentation, JPEG's compression benefits make JPEG popular. JPEG/Exif is the most common format saved by digital cameras. However, JPEG is not well suited for line drawings and other textual or iconic graphics, where the sharp contrasts between adjacent pixels can cause noticeable artifacts; such images are better saved in a lossless graphics format such as TIFF, GIF, PNG, or a raw image format. The JPEG standard includes a lossless coding mode; as the typical use of JPEG is a lossy compression method, which reduces the image fidelity, it is inappropriate for exact reproduction of imaging data. JPEG is not well suited to files that will undergo multiple edits, as some image quality is lost each time the image is recompressed if the image is cropped or shifted, or if encoding parameters are changed – see digital generation loss for details.
To prevent image information loss during sequential and repetitive editing, the first edit can be saved in a lossless format, subsequently edited in that format finally published as JPEG for distribution. JPEG uses a lossy form of compression based on the discrete cosine transform; this mathematical operation converts each frame/field of the video source from the spatial domain into the frequency domain. A perceptual model based loosely on the human psychovisual system discards high-frequency information, i.e. sharp transitions in intensity, color hue. In the transform domain, the process of reducing information is called quantization. In simpler terms, quantization is a method for optimally reducing a large number scale into a smaller one, the transform-domain is a convenient representation of the image because the high-frequency coefficients, which contribute less to the overall picture than other coefficients, are characteristically small-values with high compressibility; the quantized coefficients are sequenced and losslessly packed into the output bitstream.
Nearly all software implementations of JPEG permit user control over the compression ratio, allowing the user to trade off picture-quality for smaller file size. In embedded applications, the parameters are fixed for the application; the compression method is lossy, meaning that some original image information is lost and cannot be restored affecting image quality. There is an optional lossless mode defined in the JPEG standard. However, this mode is not supported in products. There is an interlaced progressive JPEG format, in which data is compressed in multiple passes of progressively higher detail; this is ideal for large images that will be displayed while downloading over a slow connection, allowing a reasonable preview after receiving only a portion of the data. However, support for progressive JPEGs is not universal; when progressive JPEGs are received by programs that do not support them (such