It can achieve a compression ratio of 1:10 without any perceivable difference in quality. JPEG is a lossy compression specification that takes advantage of human perception. This noticeable reduction in quality or distortion of the image is called compression artefact. However, this compression ratio comes at a cost of reduced quality that becomes increasingly evident as we zoom in on the image. Lossy compression algorithms always have a superior compression ratio (the ratio of size of compressed image to original image) as compared to lossless compression. Data loss in lossy compression is irreversible. This is not the case in lossy compression. In lossless compression, it is possible to reconstruct the original image from the compressed image because there is no information loss during compression. Compression can be of two types - lossless and lossy. Choosing the correct image format and compression is a major factor that determines image size. are compressed to reduce the size of data and ensure faster transmission. Use GIF format for images that contain animations.Īlmost all forms of data that we see on the internet - text, image, video, etc. Use PNG format for any image that needs transparency, or for images with text & objects with sharp contrast edges like logos. Use JPEG format for all images that contain a natural scene or photograph where variation in colour and intensity is smooth. Understanding these major differences would help us deliver the best possible images to our website and mobile app users. However, these 3 image formats have significant differences amongst themselves, thus making each of them suitable for specific use cases. Several statistics reports, including the one from HTTP Archive, indicate that these 3 formats together comprise of more than 95% of all images loaded on websites. In this post, we would only be looking at the three most commonly used image formats in websites and mobile applications - JPEG, PNG, and GIF. And amongst the many of them, how do we select the best image format for our needs? I bet most of us wouldn’t have come across 90% of the image formats listed on Wikipedia. There are hundreds of image formats available each with a specific use case.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |