JPEG (Joint Photographic Experts Group) is a widely used method of lossy compression for digital images, particularly for those produced by digital photography. The degree of compression can be adjusted, allowing a selectable trade-off between storage size and image quality. JPEG typically achieves 10:1 compression with little perceptible loss in image quality. JPEG images are commonly used for storing and transmitting photographic images on the World Wide Web. The format supports 8-bit grayscale and 24-bit color images. JPEG compression works by dividing an image into 8x8 pixel blocks and then applying a Discrete Cosine Transform (DCT) to each block. The DCT converts the spatial representation of the image into a frequency representation. High-frequency components, which are less visually significant, are then discarded, resulting in compression. This lossy compression makes JPEG files smaller than lossless formats like PNG or TIFF, but it also means that some image data is lost each time the image is saved or re-compressed. Repeated editing and saving of a JPEG image can lead to a gradual degradation in image quality, known as compression artifacts. Despite this limitation, JPEG remains a popular choice for its efficient compression and widespread compatibility.