Make ZIP files smaller with ZIP Shrinker

evanhahn.com

28 points by zdw 2 days ago


seritools - 24 minutes ago

> This has the side effect of removing empty directories

yeah, this will inevitably break things. excluding those from the directory stripping shouldn't be too hard (TM)

lifthrasiir - 3 hours ago

While not very popular, ECT [1] is (still?) the best solution in this space and has been my go-to tool for this purpose.

[1] https://github.com/fhanau/Efficient-Compression-Tool

akx - 4 hours ago

> Typically, other archives like .tar.bz2 can be smaller. But those aren’t backwards-compatible!

Is there any point for (new) .bz2 archives in the era of Zstd?

ChrisNorstrom - an hour ago

I know you meant well but...

"It deletes empty folders" and "Let me know if this is a problem for you"

NEVER DO THAT. I know you meant well, but the first rule of any program is to NEVER automatically delete something without informing the user. NEVER. Users keep empty folders for structure, reminders, or placeholders because software will dump files into it later when it's run. If it was there when they zipped it up, it should be there when they unzip it. Otherwise they'll check the before and after and it will show some folders missing, create confusion, and the user will run off trying to find out if anything else is missing.

Example: A user zips up a program. Some programs are coded to look for a folder and dump files into it, if the folder is missing the program will fail. I've had that occasionally over the years. Not all programs will recreate a missing folder.

jurgenkesker - 2 hours ago

APKs need to be zipaligned, I don't see that mentioned.

stuaxo - 2 hours ago

Nice, interesting to see if it helps docx much.