the PNG image:

the GIF image:

I use the command below to merge two images:
Code: Select all
convert banana-bg.png null: \
\( banana.gif -coalesce \) -compose DstOver -layers Composite null: \
-set loop 0 -layers RemoveDups -layers RemoveZero \
finish.gif

As what you see, it's not what I expect.
I try this command with another GIF image, it works fine.


What's the problem?
Version: ImageMagick 7.0.7-25 Q16 x86_64 2018-03-04 http://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib