I wrote a java compression program. I compressed some text file. The file size after compression has decreased. But when I tried to compress the PDF file. I do not see file size changes after compression.
So, I want to know which other files will not reduce its size after compression.
Thanks Sunil Kumar Sahoo
File compression works by removing redundancy. Therefore, files that contain little redundancy are compressed badly or do not work at all.
, , , , - , . PDF , , PDF, , , JPEG.
.
jpeg/gif/avi/mpeg/mp3 . .
, , - - .
, , .
, , , .
pdf 17439 XML, 4858 . A zip -r archive pdf_folder .zip, 4542 . 93,5% , .
zip -r archive pdf_folder
, . , , , .
, , ( ) .
PDF . :
, PDF , . , , , jpegs.
http://www.verypdf.com/pdfinfoeditor/compression.htm
, , IDEA DES CBC, . .
. JPEG MPEG , .png
, , . , mp3, jpg, flac .. , - .
, . , , , , .
, PDF , , . , , , PDF?
: ( 0, :). , , 1% , mp3, jpeg ..
Office 2007 (@waqasahmed):
Office 2007..docx .xlsx( ..) zipped -xml , .
, - , :
AES-CBC ( )
"". join (map (b2a_hex, [md5 (str (i)) (...)]))
, ( ), .
Otherwise, the set of all input sequences up to a given length L can be mapped onto the (much) smaller set of all sequences of length less than L and do this without collisions (since compression should be lossless and reversible), which excludes the possibility of the pigeon principle .
So, there are endless files that do not reduce its size after compression and, in addition, the file does not require a file with high entropy :)