PNG is one of the popular formats in web graphics. It was proposed in 1995 at the Usenet conference as a free alternative to licensed GIF. Since October 1, 1996, it exists as a full-fledged graphic format supported by all browsers and graphic editors.PNG is one of the most popular formats due to its good compression without loss of quality, fast loading, transparency function, clear image borders. In practice, .png is ideal for saving images with a small number of colors, as well as graphics with transparent areas. Logos, icons, badges, diagrams, scanned copies of documents are usually placed on sites just in .png format
JPG is one of the most recognizable, popular, and comprehensible bitmap image formats.This format appeared as a result of the work of the group of photo experts “Joint Photographic Experts Group”. The main task of this group of developers was to develop an optimal image compression algorithm. Today, this problem has been solved successfully. It is used .jpg most often for processing and storing full-color images with realistic images, where brightness and color transitions are inherently present. Also .jpg format is used for storing and transmitting graphic digital content (photos, scan copies, digitized pictures). It is most convenient for placing and transmitting compressed images over the network, because it takes up little space compared to other formats.