= lepton(1)

== Name

lepton - tool to compress JPEGs losslessly

== Synopsys

*lepton* [switches] input_file [output_file]

== Description

Lepton is a tool and file format for losslessly compressing JPEGs by an average
of 22%.

This can be used to archive large photo collections, or to serve images live
and save 22% bandwidth.

== Options

*-version*::

Version of lepton codec

*-revision*::

Source revision of lepton binary

*-unjailed*::

Do not jail this process (use only with trusted data)

*-singlethread*::

Do not clone threads to operate on the input file

*-maxchildren*::

Max codes to ever spawn at the same time in socket mode

*-preload*::

Preload decoding code

*-unkillable*::

Ignore SIGTERM and SIGQUIT after alarm timer is set

*-allowprogressive*::

Allow progressive jpegs through the compressor

*-fork*::

Serve requests on a series of pipes [deprecated]

*-zlib0*::

Instead of a jpg, return a zlib-compressed jpeg

*-timebound=<>ms*::

For *-socket*, enforce a timeout since first byte received

*-trunc=<>*::

Truncate input file to N bytes and do not read further

*-memory=<>M*::

Upper bound on the amount of memory allocated by main

*-threadmemory=<>M*::

Bound on the amount of memory allocated by threads

*-hugepages*::

Allocate from the hugepages on the system

*-avx2upgrade*::

Try to exec <binaryname>-avx if avx is available

*-injectsyscall={1..4}*::

Inject a "chdir" syscall & check SECCOMP crashes

*-socket*::

Serve requests on a Unix Domain Socket

*-socket=<name>*::

Path to socket (otherwise random path used and printed)

*-listen*::

Serve requests on a TCP socket on port 2402

*-listen=<port>*::

Serve requests on a TCP socket on port <port>

*-zliblisten*::

Serve requests on a TCP socket oi port 2403

*-zliblisten=<port>*::

Serve requests on a TCP socket on port <port>

*-recodememory=<>M*::

Check that a singlethreaded recode only uses <>M mem

== AUTHOR

This manual page was written by mailto:czchen@debian.org[*ChangZhuo Chen
<czchen@debian.org>*] for the *Debian GNU/Linux system* (but may be used by
others).
