The way that PNGs do transparency is that they have 4 “color layers” – one for red, green, blue and “alpha”
Red green and blue channels are enough to be combined to make the color for each pixel. The alpha channel indicates for each pixel, “how transparent” it should be
JPG only has the red/green/blue channels, so it doesn’t support transparency
An older format, GIF, supports transparency but only as a binary on/off value, i.e. the pixel is either fully opaque or full transparent
Latest Answers