creating an animated image with text on each frame

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

You are not handling parenthesis correctly.

The parenthesis should first load or clone the image you want to modify, then modify it. Think of them as a almost completely seperate 'convert' command.

You should also look at the example in IM Examples, for Frame by Frame modification of a GIF animation...
http://www.cit.gu.edu.au/~anthony/graph ... #frame_mod

Here a pre-existing animation is modified by extracting each frame, changing it, then returning it into its correct place.

If creating the animation at the same time do it this way...

convert ( setings image1 modify \) \
( setings image2 modify \) \
.... \
final settings, save_image

For example see see the Moving Hole Animation
http://www.cit.gu.edu.au/~anthony/graph ... sics/#hole

Note that the first frame is temporary and is deleted when all the other frames have been generated.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply