Where JPEG comes from
When the JPEG committee's 1992 standard reached personal computers, FAT file systems enforced 8.3 filenames, so software on DOS and Windows truncated the natural .jpeg suffix to .jpg. Unix and classic Mac OS never had that limit and often kept the longer spelling, which is why both extensions still circulate decades after the restriction disappeared.