GNU/Linux Desktop Survival Guide
by Graham Williams
20190303 Animated images are a concept that is half way between a static image and a video. Essentially we can create an animation from a series of static images. This is quite popular where the images are a series of camera shots that are taken in quick succession. The results of turning the series of static images into an animated image can be quite impressive.
The GIF format supports animated images, which we usually refer to as
animated GIFs. The ImageMagick command
convert with the
options works well for creating animated GIFs.
To begin with though, today's camera images can be quite large. For
example, a typical smart phone camera might produce a 4MB image file
for a 4032x3024 image. These are generally too large to readily
process and so using mogrify with
640 to reduce the image size to 640x480 will be useful.
Here's an example, being careful not to modify the original images:
$ mkdir TMP $ cd TMP $ cp ../20190214_1230*.jpg . $ mogrify -resize 640 *.jpg $ convert -delay 30 -loop 0 *.jpg 20190214_1230.gif $ eom 20190214_1230.gif $ cp 20190214_1230.gif .. $ cd .. $ rm -rf TMP