What files do not reduce size after compression

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

+5
source share
16 answers

File compression works by removing redundancy. Therefore, files that contain little redundancy are compressed badly or do not work at all.

, , , , - , . PDF , , PDF, , , JPEG.

+12

.

+6

jpeg/gif/avi/mpeg/mp3 . .

+6

, , - - .

, , .

+3

, , , .

pdf 17439 XML, 4858 . A zip -r archive pdf_folder .zip, 4542 . 93,5% , .

+2

, . , , , .

+1

, , ( ) .

+1

PDF . :

  • LZW (Lempel-Ziv-Welch)
  • FLATE (ZIP, PDF 1.2)
  • JPEG JPEG2000 ( PDF 1.5 CCITT ( , 3 4)
  • JBIG2 (PDF 1.4) RLE ( )

, PDF , . , , , jpegs.

.

http://www.verypdf.com/pdfinfoeditor/compression.htm

+1

, , IDEA DES CBC, . .

+1

. JPEG MPEG , .png

0

, , . , mp3, jpg, flac .. , - .

0

, . , , , , .

, PDF , , . , , , PDF?

0

: ( 0, :). , , 1% , mp3, jpeg ..

0

Office 2007 (@waqasahmed):

Office 2007..docx .xlsx( ..) zipped -xml , .

0
  • , - , :

    AES-CBC ( )

    "". join (map (b2a_hex, [md5 (str (i)) (...)]))

0

, ( ), .

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 :)

0
source

All Articles