Oh, so beautiful and so nostalgic. I think I always associated unconsciously GIF with the green color, and JPEG with the red color. The explanation may be on these icons: JPG is the frame with a red painting, while GIF is the frame with the green painting. I remember using them as a kid a lot in the 2000s when designing my own webpages in Frontpage + Paint.