gif2ajpeg - Convert an Animated JPEG (AJPEG) to an animated GIF on command-line
ajpeg2gif [options] <input-file> [output-file]
This script relies on mogrify and gifsicle, so make sure both tools are available, on Debian/Ubuntu that would be by executing apt-get install imagemagick gifsicle.
- not implemented: --quality, -q
Animated GIFs require a lot of tweaking to bring file-size down to a reasonable size. ajpeg2gif can't achieve this automatically and thus currently uses hardcoded FloydSteinberg dithering via mogrify, and optimizations done in gifsicle.
Flag. Tells ajpeg2gif to adjust the file modification timestamp (mtime) of the output-file to be the same as the mtime of the input-file.
- --force, -f
Flag. Force overwriting of an existing output file.
- --debug, -d
Flag. Switch debug output on.
$ ajpeg2gif --keep-mtime input.ajpeg output.gif
When the output file is omitted, ajpeg2gif will write to a file with the suffix .gif and the input file's basename:
More information about how an Animated JPEG differs from animated GIF files can be found in the documentation of the backend module Image::Animated::JPEG and the official AJPEG specs bundled with this distribution.
Clipland GmbH http://www.clipland.com/
Copyright 2012-2017 Clipland GmbH. All rights reserved.