'\" t
.\" Title: lepton
.\" Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.79.1
.\" Date: 05/27/2017
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "LEPTON" "1" "05/27/2017" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
lepton \- tool to compress JPEGs losslessly
.SH "SYNOPSYS"
.sp
\fBlepton\fR [switches] input_file [output_file]
.SH "DESCRIPTION"
.sp
Lepton is a tool and file format for losslessly compressing JPEGs by an average of 22%\&.
.sp
This can be used to archive large photo collections, or to serve images live and save 22% bandwidth\&.
.SH "OPTIONS"
.PP
\fB\-version\fR
.RS 4
Version of lepton codec
.RE
.PP
\fB\-revision\fR
.RS 4
Source revision of lepton binary
.RE
.PP
\fB\-unjailed\fR
.RS 4
Do not jail this process (use only with trusted data)
.RE
.PP
\fB\-singlethread\fR
.RS 4
Do not clone threads to operate on the input file
.RE
.PP
\fB\-maxchildren\fR
.RS 4
Max codes to ever spawn at the same time in socket mode
.RE
.PP
\fB\-preload\fR
.RS 4
Preload decoding code
.RE
.PP
\fB\-unkillable\fR
.RS 4
Ignore SIGTERM and SIGQUIT after alarm timer is set
.RE
.PP
\fB\-allowprogressive\fR
.RS 4
Allow progressive jpegs through the compressor
.RE
.PP
\fB\-fork\fR
.RS 4
Serve requests on a series of pipes [deprecated]
.RE
.PP
\fB\-zlib0\fR
.RS 4
Instead of a jpg, return a zlib\-compressed jpeg
.RE
.PP
\fB\-timebound=<>ms\fR
.RS 4
For
\fB\-socket\fR, enforce a timeout since first byte received
.RE
.PP
\fB\-trunc=<>\fR
.RS 4
Truncate input file to N bytes and do not read further
.RE
.PP
\fB\-memory=<>M\fR
.RS 4
Upper bound on the amount of memory allocated by main
.RE
.PP
\fB\-threadmemory=<>M\fR
.RS 4
Bound on the amount of memory allocated by threads
.RE
.PP
\fB\-hugepages\fR
.RS 4
Allocate from the hugepages on the system
.RE
.PP
\fB\-avx2upgrade\fR
.RS 4
Try to exec \-avx if avx is available
.RE
.PP
\fB\-injectsyscall={1\&.\&.4}\fR
.RS 4
Inject a "chdir" syscall & check SECCOMP crashes
.RE
.PP
\fB\-socket\fR
.RS 4
Serve requests on a Unix Domain Socket
.RE
.PP
\fB\-socket=\fR
.RS 4
Path to socket (otherwise random path used and printed)
.RE
.PP
\fB\-listen\fR
.RS 4
Serve requests on a TCP socket on port 2402
.RE
.PP
\fB\-listen=\fR
.RS 4
Serve requests on a TCP socket on port
.RE
.PP
\fB\-zliblisten\fR
.RS 4
Serve requests on a TCP socket oi port 2403
.RE
.PP
\fB\-zliblisten=\fR
.RS 4
Serve requests on a TCP socket on port
.RE
.PP
\fB\-recodememory=<>M\fR
.RS 4
Check that a singlethreaded recode only uses <>M mem
.RE
.SH "AUTHOR"
.sp
This manual page was written by \fBChangZhuo Chen <\fR\fBczchen@debian\&.org\fR\fB>\fR for the \fBDebian GNU/Linux system\fR (but may be used by others)\&.