JPEG is an image format defined by the Joint Photographic Experts Group, which defined the original format and its wavelet-based JPEG2000 variant.
I will spare you the details of how the original JPEG format uses Discrete Cosine Transforms (I once wrote a baseline decoder for it), and simply point you toward a few interesting resources out there: