title: how to make a high quality animated image with imagemagick
body: <p>I want to make an animated gif from those .png image:</p>
  
  <p><img src="https://i.stack.imgur.com/C4Drz.png" alt="enter image description here"><img src="https://i.stack.imgur.com/DuCIz.png" alt="enter image description here"><img src="https://i.stack.imgur.com/GOWmh.png" alt="enter image description here"><img src="https://i.stack.imgur.com/fwrko.png" alt="enter image description here"></p>
  
  <p>I do it with this command:</p>
  
  <pre><code>convert -layers OptimizePlus -delay 25x100 ps1-*.png -loop 0 ps1.gif
  </code></pre>
  
  <p>It made an animated gif successfully, however, the output has very low quality and  smaller than input images:</p>
  
  <p><img src="https://i.stack.imgur.com/BGTLg.gif" alt="enter image description here"></p>
  
  <p>After some search, I got -quality</p>
  
  <pre><code>convert -layers OptimizePlus -delay 25x100 -quality 99 ps1-*.png -loop 0 ps1.gif
  </code></pre>
  
  <p>But it seems like imagemagick just ignore the parameter.</p>