Search code examples
imagemagickanimated-gif

Gif creation with Imagemagick - convert : Images are overlapping


I am trying to make a gif with images using convert. But in the resulting gif, the images are just stacking one over the other. Here is the created gif : https://i.imgur.com/EgISW2y.gif

I tried creating it with simple command :

$ convert -delay 8 -loop 0 plot_* result.gif


Solution

  • Try using the -dispose setting with previous option, which disposes the previous frames after they are displayed:

    convert -dispose previous -delay 8 plot_* -loop 0 result.gif
    

    Further reading here.