title: Best way to compress animated GIFs using ImageMagick, without using Gifsicle
body: <p>So my web host won't install <code>gifsicle</code> on their shared servers, so I'm stuck with <a href="http://www.imagemagick.org/" rel="noreferrer">ImageMagick</a>. I want to compress the images like it is here: <a href="https://pornel.net/lossygif" rel="noreferrer">https://pornel.net/lossygif</a> how can I do that without using <code>gifsicle</code>; using only ImageMagick?</p>
  
  <p>Right now my <code>exec()</code> command goes like:</p>
  
  <pre><code>exec("convert $animation -coalesce -gravity SouthWest  -geometry +0+0 null: $watermark -layers composite -layers optimize $animation");
  </code></pre>
  
  <p>and the watermarked GIF barely compresses, and sometimes it even gets larger.
  How could I solve this issue?</p>