压缩后哪些文件不会减小其大小 [英] Which files does not reduce its size after compression
问题描述
我已经编写了一个Java程序进行压缩。我已经压缩了一些文本文件。压缩后的文件大小减小。但是当我尝试压缩PDF文件时。我没有看到压缩后文件大小的任何变化。
I have written a java program for compression. I have compressed some text file. The file size after compression reduced. But when I tried to compress PDF file. I dinot see any change in file size after compression.
所以我想知道还有哪些其他文件在压缩后不会减小其大小。
So I want to know what other files will not reduce its size after compression.
感谢
Sunil Kumar Sahoo
Thanks Sunil Kumar Sahoo
推荐答案
文件压缩通过消除冗余来实现。因此,包含很少冗余的文件会严重压缩或根本不压缩。
File compression works by removing redundancy. Therefore, files that contain little redundancy compress badly or not at all.
您最可能会遇到的没有冗余的文件是已压缩的文件。对于PDF,特别是那些主要由图像组成的PDF,这些图像本身就是诸如JPEG的压缩图像格式。
The kind of files with no redundancy that you're most likely to encounter is files that have already been compressed. In the case of PDF, that would specifically be PDFs that consist mainly of images which are themselves in a compressed image format like JPEG.
这篇关于压缩后哪些文件不会减小其大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!