Skip to content

Squeeze options

Every option squeeze reads, and zip when squeeze has taken over zip. This page is made from the same table as squeeze -h2, so the two always agree.

The options are read as Apple's zip reads them: short options can be grouped (-qr), and a long option can be shortened while it stays unique (--img-c for --img-compression).

Archives

Packing into 7z, Apple Archive or zip, the automatic choices, and passwords. squeeze -h archives shows these in Terminal.

Option Value What it does
-Z
--compression-method
method The format and method: store, deflate (zip); 7z; aar or aar:lz4 and the other Apple Archive methods; or an automatic choice, -Z fastest (f), -Z balanced (b, also best), -Z smallest (s).
--zip make a zip (as zip reads the line)
--fastest the fastest level
--fast a fast level
--balanced the balanced level
--smallest the smallest level
--lz4 an Apple Archive with LZ4
--lzfse an Apple Archive with LZFSE
--lzma an Apple Archive with LZMA
--lzbitmap an Apple Archive with LZBITMAP
--zlib an Apple Archive with zlib
--raw an Apple Archive, stored without compressing
--classic-zip a zip with Apple zip's classic password (weak)
--read-password file read the password from a file's first line
--zip-password-7z on\|off started as zip, a password makes a 7z
-Wo
--write-over
--writeo
on\|off write over files that exist
-Ws
--write-skip
--writes
on\|off skip files that exist
-Wn
--write-new-name
--writen
on\|off give a new name ("photo 2.jpg") where one is taken
-Wf
--write-folders
--write-dirs
--writef
--writed
on\|off make folders that do not exist
--for-windows on\|off mark names as Unicode, for Windows
--portable-archives on\|off only zip and 7z, which Windows and Linux open
--compression-method-fastest method The method -Z fastest makes, for this command only: aar-lz4, aar-lzbitmap, aar-lzfse, aar-zlib, aar-lzma, 7z-0 to 7z-9, or zip-0 to zip-9.
--compression-method-balanced method The method -Z balanced makes (and squeeze with no -Z), for this command only: aar-lz4, aar-lzbitmap, aar-lzfse, aar-zlib, aar-lzma, 7z-0 to 7z-9, or zip-0 to zip-9.
--compression-method-smallest method The method -Z smallest makes, for this command only: aar-lz4, aar-lzbitmap, aar-lzfse, aar-zlib, aar-lzma, 7z-0 to 7z-9, or zip-0 to zip-9.
--compression-method-portable-fastest method The method -Z fastest makes while portable-archives is on, for this command only: 7z-0 to 7z-9, or zip-0 to zip-9.
--compression-method-portable-balanced method The method -Z balanced makes while portable-archives is on, for this command only: 7z-0 to 7z-9, or zip-0 to zip-9.
--compression-method-portable-smallest method The method -Z smallest makes while portable-archives is on, for this command only: 7z-0 to 7z-9, or zip-0 to zip-9.
--least-password-length 6-40 the least password length, for one command
--replace-windows-characters on\|off replace characters Windows forbids
--leave-out-mac-files on\|off leave out .DS_Store and ._ files
--dont-recompress on\|off store what is already compressed
--zip-options =options zip's options added to every command

Images

Making images smaller. squeeze -h images.

Option Value What it does
--img [=lossless\|same\|balanced\|smallest] squeeze images. A value after = sets the compression for this command only.
--lossless images: every pixel the same
--same images: changes you cannot see
-Wo
--write-over
--writeo
on\|off write over files that exist
-Ws
--write-skip
--writes
on\|off skip files that exist
-Wn
--write-new-name
--writen
on\|off give a new name ("photo 2.jpg") where one is taken
-Wf
--write-folders
--write-dirs
--writef
--writed
on\|off make folders that do not exist
--squeeze-again squeeze files QwikSqueeze squeezed before
-Ic
--img-compression
--imgc
lossless\|same\|balanced\|smallest images: the compression
-If
--img-format
--imgf
same\|png\|jpeg\|heic images: the format
-Iz
--img-size
--imgz
keep\|50%\|pixels images: the size
-Ir
--img-remove
--imgr
lcdoa images: metadata to remove
-Ik
--img-keep
--imgk
lcdoa images: metadata to keep, the rest removed
-Is
--img-save-to
--imgs
replace\|beside\|folder images: where to save
-In
--img-name-add
--imgn
on\|off\|=text images: add text to the file name
-Iw
--img-web-colours
--img-web-colors
--imgw
on\|off images: standard web colours
-Im
--img-mark
--imgm
on\|off images: mark with QwikSqueeze history
-It
--img-tag
--imgt
tag images: the Finder tag
--img-name-text text images: the text added to names

PDFs

Making PDFs smaller. squeeze -h pdfs.

Option Value What it does
--pdf [=fastest\|fast\|balanced\|smallest\|0-9] squeeze PDFs. A value after = sets the file compression for this command only.
-Wo
--write-over
--writeo
on\|off write over files that exist
-Ws
--write-skip
--writes
on\|off skip files that exist
-Wn
--write-new-name
--writen
on\|off give a new name ("photo 2.jpg") where one is taken
-Wf
--write-folders
--write-dirs
--writef
--writed
on\|off make folders that do not exist
--squeeze-again squeeze files QwikSqueeze squeezed before
-Bi
--pdf-image-compression
--pdfi
lossless\|same\|balanced\|smallest PDFs: the images inside
-Bc
--pdf-file-compression
--pdfc
fastest\|fast\|balanced\|smallest\|0-9 PDFs: the file compression
-Ba
--pdf-a
--pdfa
on\|off PDFs: PDF/A
-Br
--pdf-remove
--pdfr
tdsepla PDFs: metadata to remove
-Bk
--pdf-keep
--pdfk
tdsepla PDFs: metadata to keep, the rest removed
-Bf
--pdf-font
--pdff
FROM=TO PDFs: a font substitution
--pdf-font-serif font PDFs: the serif fallback
--pdf-font-sans-serif font PDFs: the sans-serif fallback
--pdf-font-monospaced font PDFs: the monospaced fallback
-Bs
--pdf-save-to
--pdfs
replace\|beside\|folder PDFs: where to save
-Bn
--pdf-name-add
--pdfn
on\|off\|=text PDFs: add text to the file name
-Bm
--pdf-mark
--pdfm
on\|off PDFs: mark with QwikSqueeze history
-Bt
--pdf-tag
--pdft
tag PDFs: the Finder tag
--pdf-name-text text PDFs: the text added to names

Apple zip's options

Every option of Apple's zip, as squeeze reads it: for a plain zip, Apple's zip does the work, exactly as before. For a 7z or Apple Archive, squeeze does the same job itself. Options marked Differs work differently for a 7z or Apple Archive, as each says. squeeze -h zip shows Apple's own help.

Option Value What it does
-0 … -9
--store
--compress-1 … --compress-9
The level, as typed: for a zip, Apple zip's level; for a 7z, the LZMA SDK's level; for an Apple Archive, a method (0 raw, 1 to 2 LZ4, 3 to 4 LZBITMAP, 5 to 7 LZFSE, 8 to 9 LZMA). 0 stores without compressing. Differs
-@
--names-stdin
read file names from the input, one a line
-A
--adjust-sfx
Adjusts the offsets of a self-extracting zip. For a 7z or Apple Archive it is ignored, with a line saying so. Differs
-b
--temp-path
folder build the archive in this folder first
-c
--entry-comments
Asks for a comment for each file. A 7z or Apple Archive keeps them in a comments file that QwikSqueeze shows when unpacking. Differs
-d
--delete
Deletes the named files from an existing archive.
-db
--display-bytes
show the bytes done while working
-dc
--display-counts
show the files done while working
-dd
--display-dots
show a dot for each step of each file
-dg
--display-globaldots
show dots for the whole archive
-ds
--dot-size
size the work each dot stands for
-du
--display-usize
show each file's size before packing
-dv
--display-volume
show the piece being written
-D
--no-dir-entries
no entries for folders themselves
-DF
--difference-archive
Reads an existing archive's list and writes a new archive, named with -O, holding only what changed since.
-e
--encrypt
Asks for a password, twice. squeeze makes a 7z protected by AES-256 with its names hidden; started as zip, an AES-256 zip (or a 7z, with --zip-password-7z on). A password shorter than --least-password-length is refused, or under zip given to Apple zip's classic password with a warning. Differs
-F
--fix
Fixes a mostly intact zip. A 7z or Apple Archive does not need the fix commands, so it is ignored with a line. Differs
-FF
--fixfix
Tries harder to fix a damaged zip. A 7z or Apple Archive does not need the fix commands, so it is ignored with a line. Differs
-FI
--fifo
read named pipes as files
-FS
--filesync
Adds, replaces and removes until the archive matches the files on disk.
-f
--freshen
Replaces files already in the archive that have changed on disk, never adding new ones.
-fd
--force-descriptors
zip only: write data descriptors
-fz
--force-zip64
zip only: force the Zip64 format
-g
--grow
--append
add to an existing archive
-i
--include
patterns Only files whose names match these patterns. * matches across folders unless -ws. The list ends at the next option or at @.
-j
--junk-paths
store file names without their folders
-J
--junk-sfx
zip only: remove a self-extractor
-k
--DOS-names
zip only: 8.3 MS-DOS names
-l
--to-crlf
zip only: Windows line endings for text files
-ll
--from-crlf
zip only: Unix line endings for text files
-lf
--logfile-path
file write a log to this file
-la
--log-append
add to the log file
-li
--log-info
include information in the log
-m
--move
Moves the files into the archive: the archive is tested first, and the originals are deleted only once it passes.
-mm not used (zip's own entry)
-MM
--must-match
fail if a name is not found
-n
--suffixes
endings Stores files with these endings without compressing them, as .jpg:.png. Merged with --dont-recompress's list.
-nw
--no-wild
no wildcards in file names
-o
--latest-time
date the archive as its newest file
-O
--output-file
name write the result to another archive
-p
--paths
store paths (as zip does anyway)
-P
--password
password The password, on the command line, where ps and the shell's history can show it. It protects the archive as -e does. --read-password reads it from a file instead. Differs
-q
--quiet
quiet: no information lines
-r
--recurse-paths
go into folders
-R
--recurse-patterns
match patterns in every folder from here
-RE
--regex
[list] wildcards in patterns
-s
--split-size
size Splits the archive into pieces of this size (64k the smallest; k, m, g and t count in 1,024s). A 7z becomes name.7z.001, .002; an Apple Archive name-1.aar, name-2.aar.
-sp
--split-pause
zip only: pause between pieces
-sv
--split-verbose
show each piece as it is made
-sb
--split-bell
zip only: ring the bell between pieces
-sc
--show-command
show the command as read, and stop
-sd
--show-debug
zip only: show debugging
-sf
--show-files
show the files that would be stored, and stop
-so
--show-options
show zip's own options
-t
--from-date
date only files changed on or after this date
-tt
--before-date
date only files changed before this date
-T
--test
test the archive once made
-TT
--unzip-command
command zip only: the unzip used for -T
-u
--update
add new files and replace changed ones
-U
--copy-entries
zip only: copy entries from another archive
-v
--verbose
more detail; alone, the version
-ws
--wild-stop-dirs
* stops at /, ** crosses it
-x
--exclude
patterns Leaves out files whose names match these patterns. * matches across folders unless -ws. The list ends at the next option or at @.
-X
--strip-extra
leave out the owner, group and extra dates
-y
--symlinks
Stores links as links. An Apple Archive keeps them; a 7z stores what each link leads to, with a line saying so. Differs
-z
--archive-comment
ask for a comment for the archive

Settings

Shared by squeeze and unsqueeze. See also the settings file. squeeze -h settings.

Option Value What it does
--replace-zip Puts links in /usr/local/bin so that zip runs squeeze and unzip runs unsqueeze. Needs sudo, and every condition to hold; sudo squeeze --restore-zip gives them back.
--restore-zip give zip and unzip back to Apple (with sudo)
--defaults show the built-in defaults
--fix-config Makes ~/.qwiksqueezeconfig when there is none; otherwise puts back every setting that is missing or only commented out, at its starting value, never changing a value already there, and lays the file out afresh.
--settings show every setting
--settings-reset put every setting back at its starting value
--set name=value change one setting
--reset name put one setting back at its starting value
--explain show every value used and where it came from

Misc

The version, the licence, upgrading and uninstalling. squeeze -h misc.

Option Value What it does
-L
--license
Shows QwikSqueeze's licence, then each library's licence in full. Started as zip, Apple zip's licence.
--uninstall remove QwikSqueeze's command line tools (with sudo)
-V
--version
--VERSION
the version

Help

Option Value What it does
-h
-H
-?
--help
This help. A word after it, as in squeeze -h level, shows only the options whose long names hold it.
-h2
--more-help
--help-detail
This help with the longer explanations, then what squeeze can do, where each value comes from and where to find more help.