Skip to content

Compression methods

squeeze makes three formats. Each method is named the same way everywhere: in the settings, with --compression-method-… for one command, and in what squeeze prints.

Method Format What it is
7z-0 … 7z-9 7z LZMA2, at levels 0 (stored) to 9 (smallest). Opens on Windows and Linux with a 7z app. Can be protected by AES-256 with the names hidden.
aar-lz4 Apple Archive LZ4: the fastest of all, and the least compressed.
aar-lzbitmap Apple Archive LZBITMAP: very fast, a little smaller than LZ4.
aar-lzfse Apple Archive LZFSE: Apple's own balance of speed and size.
aar-zlib Apple Archive zlib: as a zip compresses.
aar-lzma Apple Archive LZMA: small, and slow.
zip-0 … zip-9 zip Deflate, at levels 0 (stored) to 9, made by Apple's own zip. Opens everywhere with no extra app.

An Apple Archive keeps Mac file details, such as tags and permissions, and opens on Apple devices only. With a password, it's an encrypted Apple Archive, .aea.

What fastest, balanced and smallest choose

-Z Setting Starts as With portable-archives on
fastest compression-method-fastest aar-lz4 compression-method-portable-fastest: 7z-1
balanced, and no -Z compression-method-balanced 7z-1 compression-method-portable-balanced: 7z-1
smallest compression-method-smallest 7z-9 compression-method-portable-smallest: 7z-9

portable-archives makes only 7z and zip, which open on Windows and Linux; so its three settings take only 7z-… and zip-… methods.

What decides the format

First to last:

  1. A name for the method, with -Z: -Z 7z, -Z aar:lzfse, -Z deflate, -Z store.
  2. The archive's name: ending .7z, .aar or .zip.
  3. -Z fastest, -Z balanced or -Z smallest, by the settings above.
  4. With none of these, balanced.

Started as zip, a plain zip is always a zip, made by Apple's zip, unless the name ends .7z or .aar.

Already-compressed files

Photos, videos, music and archives are already compressed. With dont-recompress on, as it starts, they're stored as they are in a 7z or Apple Archive rather than squeezed again, which saves time and costs almost nothing in size.