"Fossies" - the Fresh Open Source Software Archive

Member "littleutils-1.2.4/scripts/opt-jpg.1" (28 Mar 2021, 2517 Bytes) of package /linux/privat/littleutils-1.2.4.tar.lz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 .TH OPT-JPG 1 "2021 Jan 15" littleutils
    2 .SH NAME
    3 opt-jpg \- losslessly optimize JPEG image files
    4 .SH SYNOPSIS
    5 \fBopt-jpg\fR
    6 [\fB\-a(rithmetic)\fR]
    7 [\fB\-g(ray)\fR]
    8 [\fB\-h(elp)\fR]
    9 [\fB\-m\fR\~\fImarkers_to_copy\fR]
   10 [\fB\-q(uiet)\fR]
   11 [\fB\-t(ouch)\fR]
   12 \fIfile\|.\|.\|.\fR
   13 .SH DESCRIPTION
   14 \fBopt-jpg\fR losslessly optimizes JPEG images.  This is accomplished using a
   15 combination of the \fBfilesize\fR, \fBjpegtran\fR, and \fBtempname\fR
   16 utilities.
   17 .SH OPTIONS
   18 .TP
   19 \fB\-a\fR
   20 Allow arithmetic coding to be used on re-written image files instead of the
   21 more prevalent Huffman coding.  This can yield image files that are 5-7%
   22 smaller, but older software (image viewers, web browsers, image editors) might
   23 not read them successfully.  USE WITH CAUTION.
   24 .TP
   25 \fB\-g\fR
   26 Force the output to grayscale.
   27 .TP
   28 \fB\-h\fR
   29 Print help and quit.
   30 .TP
   31 \fB\-m\fR
   32 Copy no markers from source file.  Identical to "\fI-copy none\fR" option from
   33 \fBjpegtran\fR.  This is the default.
   34 .TP
   35 \fB\-m\fR\~\fIcomments\fR
   36 Copy only comment markers.  Identical to "\fI-copy comments\fR" option from
   37 \fBjpegtran\fR.
   38 .TP
   39 \fB\-m\fR\~\fIall\fR
   40 Copy all extra markers.  Identical to "\fI-copy all\fR" option from
   41 \fBjpegtran\fR.
   42 .TP
   43 \fB\-q\fR
   44 Quiet output.  No output commentary will be printed.
   45 .TP
   46 \fB\-t\fR
   47 Preserve timestamp on modified files.
   48 .SH EXAMPLES
   49 .TP
   50 Optimize a couple of image files:
   51 opt-jpg image001.jpg image002.jpg
   52 .TP
   53 Optimize all JPEG images in an entire directory tree:
   54 find . -name "*.jpg" -exec opt-jpg {} \\;
   55 .TP
   56 Or alternatively, optimize all JPEG images this way:
   57 find . -name "*.jpg" -print0 | xargs -0 opt-jpg
   58 .TP
   59 Fully utilize a quad-core system while optimizing all JPEG images:
   60 find . -name "*.jpg" -print0 | xargs -0 -n 1 -P 4 opt-jpg
   61 .br
   62 find . -name "*.jpg" | parallel opt-jpg
   63 .SH NOTES
   64 This program may create progressive JPEG files from images that were previously
   65 non-progressive.  Curiously, they are sometimes smaller.
   66 .SH "SEE ALSO"
   67 \fBfilesize\fR(1), \fBjpegtran\fR(1), \fBtempname\fR(1)
   68 .SH COPYRIGHT
   69 Copyright (C) 2004-2021 by Brian Lindholm.  This program is free software; you
   70 can use it, redistribute it, and/or modify it under the terms of the GNU
   71 General Public License as published by the Free Software Foundation; either
   72 version 3, or (at your option) any later version.
   73 
   74 This program is distributed in the hope that it will be useful, but WITHOUT ANY
   75 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   76 PARTICULAR PURPOSE.  See the GNU General Public License for more details.