system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5 the differences between similar file types and what instances they're better for (jpeg or PNG, gif or html5, PDFs and such)
gpt
Each file type stores and compresses its data in different ways. Let's look at three different image formats: jpg, png, and bmp.

Bmp, or bitmaps, are uncompressed images. If you read the bytes, you would get the colors of each and every pixel.

Png images are lossless compressed images. That is, they are smaller than a bmp, but you can get all of the data back.

Jpg images are lossy compressed images. They are even smaller, but when you uncompress them, they loose some of their quality. They are good at it though, so you likely won't notice much of a difference.