opt-gif(1) opt-gif(1)
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 temp- name 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-2020 by Brian Lindholm. This program is free soft- ware; 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 MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. littleutils 2020 Oct 19 opt-gif(1)
littleutils 1.2.3 - Generated Mon Nov 30 16:04:58 CST 2020