gif2ajpeg - Convert an animated GIF to an Animated JPEG (AJPEG) on command-line
gif2ajpeg [options] <input-file> [output-file]
When frames are extracted from the animated GIF, gif2ajpeg converts them to JPEGs. The quality setting allows to control the per-frame JPEG compression quality. Defaults to 75, but lower values usually yield good results.
Flag. Tells gif2ajpeg to adjust the file modification timestamp (mtime) of the output-file to be the same as the mtime of the input-file.
Flag. Force overwriting of an existing output file.
Flag. Switch debug output on.
$ gif2ajpeg input.gif output.ajpeg
When the output file is omitted, gif2ajpeg will write to a file with the suffix .ajpeg and the input file's basename:
$ gif2ajpeg --keep-mtime --quality=72 ~/some/animated.gif
To batch convert a number of animated GIFs, you can use simple shell scripting:
$ for i in ~/some/*.gif; do gif2ajpeg --keep-mtime --quality=72 "$i"; done
More information about what this script does can be found in the documentation of the backend module Image::Animated::JPEG.
Clipland GmbH http://www.clipland.com/
Copyright 2012-2017 Clipland GmbH. All rights reserved.
This library is free software, dual-licensed under GPLv3/AL2. You can redistribute it and/or modify it under the same terms as Perl itself.
To install Image::Animated::JPEG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::Animated::JPEG
CPAN shell
perl -MCPAN -e shell install Image::Animated::JPEG
For more information on module installation, please visit the detailed CPAN module installation guide.