JPEG retains all color information in an RGB image but compresses file size by selectively discarding data. A higher level of compression results in lower image quality, and a lower level of compression results in better image quality. In most cases, the Maximum quality option produces a result indistinguishable from the original.