JPEG files have a compression algorithm that significantly reduces the size of the image file, making them easier to store and load onto web pages. For storing photos or regular images.
This format consists of pixels and, unlike a vector, if you start enlarging the image to a large format, the quality begins to deteriorate.
This format is most suitable for social networks and web pages.
PNG is a file format that can be compressed. These files are primarily used for web graphics, logos, charts and illustrations rather than high-quality photographs as they take up more space than JPEG files.
The only difference in the PNG format is the ability to add a transparent background to graphic images. That is, you can add your own logo to any image or photograph.
The PNG format only applies to logos.