CARBON4 – needful things
convert -delay 1 -loop 0 -layers OptimizeFrame -colors 51 image*.jpg filename.gif