Post #31444
2025-12-04 22:42 UTC
Replies (8)
-
@Nemo@slrpnk.net 2025-12-04 22:53
The larger the file, the more patterns that can be compressed. Plus some of the dictionary overhead will be duplicated in multiple files. The single file should be, at most, no larger than the sum of smaller files. But potentially much smaller.
-
@bjoern_tantau@swg-empire.de 2025-12-04 22:53
This depends on the file format used for the pages. If it’s plain txt zipping them will greatly decrease the file size. If you just scanned the pages and have them as jpg, png or pdf zipping them will not greatly decrease the file size. The size might still decrease a little bit or increase a little bit.
-
@over_clox@lemmy.world 2025-12-04 22:59
If the compressed files are of the same/similar format, more compression is possible as the algorithm can detect more related patterns to compress. But if you toss in a variety of file formats, compression will tend to suffer more. Sometimes, the easiest way is just to try and see, different formats lend themselves to better or worse compression. The files that tend to be worst at compression are the ones that are already compressed themselves.
-
@grue@lemmy.world 2025-12-04 23:33
Taking less storage is almost the entire point of a zip file. It only takes more space than the original files in pathological cases (e.g. maybe if you’re trying to compress already-compressed data, like a video file).
-
@blackbrook@mander.xyz 2025-12-05 01:14
Wouldn’t trying it out and seeing how much it saved be about the same amount of work as typing in this question?
-
@IWW4@lemmy.zip 2025-12-08 17:48
Zip files take up less space. Compressing files was why Zip was branded.
-
@scott@lem.free.as 2025-12-04 22:54
I'm not quite sure what you're asking. ZIP, by default, is a compression tool. It takes multiple files, creates an index of the files within and then performs compression on all the files combined (to allow for a better dictionary). The index and dictionary are "overhead" that exists for each ZIP file. Sending multiple files, uncompressed, or sending multiple ZIP files (one for each file) will almost certainly be less efficient.
-
@mo_lave@reddthat.com 2025-12-04 22:55
I don't know the details, but in principle, the zip compression process tries to identify the textual commonalities between the pages. The more commonalities the 10 pages have, the smaller the zip file will be. If each page is textually very different, (example, Page 1 is "AB" , Page 2 is "CD", etc.), it's possible that the zip file will be larger. It's because it will contain the full contents of each page, plus the metadata of the zip file. Anyone more knowledgeable can correct me on this.