Question: how jpeg image compression occurs?
Answer: JPEG compression works by identification of "similar" areas of color inside the image and converting them to actually the same color code. For example if you have an image that is 24-bit color this means each pixel of the image should be able to store the color value out of 16,777,216 colors.