Overlaying an image on multiple images
Posted: 2012-01-18T10:10:26-07:00
ImageMagick 6.7.4-2
Windows 7
Windows command-line
I'm really new to ImageMagick but I managed to extract all frames from a GIF animation. Now I would like to overlay a gif image on top of all of these frames. I know how to compile the frames back to GIF. I can overlay individual images but not all of them at once. The frames are named f_#.gif and the overlay is overlay.gif and it is the same size as the frames. I have a bit over 200 frames.
I tried this but it only wrote one "anim_0.gif" and it was full black.
This code correctly writes one image with the overlay but I don't know how I would do all of them at once.
Although scaling multiple images with this code works fine.
Windows 7
Windows command-line
I'm really new to ImageMagick but I managed to extract all frames from a GIF animation. Now I would like to overlay a gif image on top of all of these frames. I know how to compile the frames back to GIF. I can overlay individual images but not all of them at once. The frames are named f_#.gif and the overlay is overlay.gif and it is the same size as the frames. I have a bit over 200 frames.
I tried this but it only wrote one "anim_0.gif" and it was full black.
Code: Select all
composite -gravity center overlay.gif f_*.gif anim_%d.gif
Code: Select all
composite -gravity center overlay.gif f_0.gif anim_%d.gif
Code: Select all
convert -scale 50% f_*.gif scaled_%d.gif