"Fossies" - the Fresh Open Source Software Archive

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


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even erroneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the latest Fossies "Diffs" side-by-side code changes report for "opt-gif.1": 1.2.3_vs_1.2.4.

OPT-GIF

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
WARNING
SEE ALSO
COPYRIGHT

NAME

opt-gif − losslessly optimize GIF image files

SYNOPSIS

opt-gif [−h(elp)] [−q(uiet)] [−t(ouch)] file...

DESCRIPTION

opt-gif losslessly optimizes GIF images by removing unused palette entries. This is accomplished using the gifsicle, filesize, and tempname utilities.

OPTIONS

−h

Print help and quit.

−q

Quiet output. No output commentary will be printed.

−t

Preserve timestamp on modified files.

EXAMPLES

Optimize a couple of image files:

opt-gif image001.gif image002.gif

Optimize all GIF images in an entire directory tree:

find . -name "*.gif" -exec opt-gif {} \;

Or alternatively, optimize all GIF images this way:

find . -name "*.gif" -print0 | xargs -0 opt-gif

Fully utilize a quad-core system while optimizing all GIF images:

find . -name "*.gif" -print0 | xargs -0 -n 1 -P 4 opt-gif
find . -name "*.gif" | parallel opt-gif

WARNING

If your copy of the gifsicle utility was compiled without LZW support, this utility won’t work. Specifically, it will fail to reduce image sizes at all, leaving them unchanged. [Versions of gifsicle without LZW support were intended to avoid infringing on Unisys’ LZW patents. These patents expired in the United States on 2003-06-20, in Europe on 2004-06-18, and in Japan on 2005-06-19. If you have such a version, get a more recent copy with LZW support enabled.] Even if your copy of gifsicle does work properly, the best solution is still to convert all of your GIF images to PNG, as PNG images are almost always smaller.

SEE ALSO

filesize(1), gifsicle(1), tempname(1)

COPYRIGHT

Copyright (C) 2004-2021 by Brian Lindholm. This program is free software; you can use it, redistribute it, and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.