Difference between JPEG and PNG

ComputersData StorageAlgorithms

JPEG and PNG both are a type of image format to store images. JPEG uses lossy compression algorithm and image may lost some of its data whereas PNG uses lossless compression algorithm and no image data loss is present in PNG format.

Following are the important differences between JPEG and PNG.

Sr. No.KeyJPEGPNG
1Stands forJPEG stands for Joint Photographic Experts Group.PNG stands for Portable Network Graphics.
2Compression Algorithm typeJPEG uses lossy compression algorithm.PNG uses lossless compression algorithm.
3Image QualityJPEG image may lose some image data causing quality loss.PNG image is of high quality.
4Image sizeJPEG image is generally smaller than PNG image of same image.PNG image is generally larger than JPEG image of same image.
5TransparencyJPEG does not supports transparency in images.PNG supports transparency in images.
6ExtensionsJPEG images use .jpeg or .jpg extension.PNG images use .png extension.
7UsageJPEG images are used in photography.PNG images are generally used in icon creation.
raja
Published on 28-Nov-2019 14:32:24
Advertisements