Page 1 of 1

Gif, static and dstover not working for me

Posted: 2016-09-08T09:54:55-07:00
by agriz

Code: Select all


convert -delay 20 space.gif -coalesce -layers OptimizePlus null: \( alien.gif  planet.gif -gravity center -compose DstOver -composite \) -loop 0 -layers composite output.gif

IM 7.0.2

space.gif
Image
Alien.gif
Image
planet.gif
Image

output.gif
Image

But if i swap the images alien and planet, and use composite over, it is working.

Code: Select all

convert -delay 20 space.gif -coalesce -layers OptimizePlus null: \( alien.gif  planet.gif +swap -gravity center -compose Over -composite \) -loop 0 -layers composite output.gif
output.gif
Image

Why the first command is not working. How to make it work?

Re: Gif, static and dstover not working for me

Posted: 2016-09-08T10:17:46-07:00
by fmw42
try resetting the -compose to over before the -layers composite. the -compose dstover setting is carrying over to the -layers composite

Code: Select all

convert -delay 20 space.gif -coalesce -layers OptimizePlus null: \( alien.gif  planet.gif -gravity center -compose DstOver -composite \) -loop 0 -compose over -layers composite output.gif
Probably a good idea to always set the -compose over before -layers composite to be safe.