{"title":"Analyzing the Trade-offs in Lossless Image Compression Techniques:Insights for Computer Science Research","authors":"Ziming Lu","doi":"10.61173/99t0ga22","DOIUrl":null,"url":null,"abstract":"This paper aims to provide a comprehensive analysis of the pros and cons of various lossless image compression algorithms for computer scientists, including RLE, Huffman coding, and LZ77. The pros and cons of different compression methods will be examined by various metrics such as space efficiency, space complexity, and time complexity. Each method will be tested upon various image file types, including BMP, TIFF, PPM, JPG, and PNG. The results indicated that Huffman encoding was particularly effective for PPM images, outperforming RLE and LZ77 with notably higher compression ratios. RLE had slightly higher compression ratios in compressing BMP files. TIFF images exhibit lower compressibility compared to BMP and PPM, but with Huffman encoding still demonstrating superior results. However, when lossless compression algorithms are applied to JPG and PNG images, they yield negative outcomes, indicating that JPG and PNG files have limited compressibility due to prior compression.","PeriodicalId":438278,"journal":{"name":"Science and Technology of Engineering, Chemistry and Environmental Protection","volume":"99 5","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-06-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Science and Technology of Engineering, Chemistry and Environmental Protection","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.61173/99t0ga22","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
This paper aims to provide a comprehensive analysis of the pros and cons of various lossless image compression algorithms for computer scientists, including RLE, Huffman coding, and LZ77. The pros and cons of different compression methods will be examined by various metrics such as space efficiency, space complexity, and time complexity. Each method will be tested upon various image file types, including BMP, TIFF, PPM, JPG, and PNG. The results indicated that Huffman encoding was particularly effective for PPM images, outperforming RLE and LZ77 with notably higher compression ratios. RLE had slightly higher compression ratios in compressing BMP files. TIFF images exhibit lower compressibility compared to BMP and PPM, but with Huffman encoding still demonstrating superior results. However, when lossless compression algorithms are applied to JPG and PNG images, they yield negative outcomes, indicating that JPG and PNG files have limited compressibility due to prior compression.