title: How to Extract Frame From GIF, and Reconstruct the Details of each Frame?
body: <p>I try to extract each frame from GIF file.</p>
  <p>I found two ways to deal with this problem.</p>
  <h3>1 Find an online tool to solve it.</h3>
  <p><a href="https://ezgif.com/split" rel="nofollow noreferrer">https://ezgif.com/split</a></p>
  <p><a href="https://i.stack.imgur.com/w3k1k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w3k1k.png" alt="enter image description here" /></a></p>
  <p>It is an excellent tool. It can redraw the details. Frames extracted from the GIF are in high quality.</p>
  <p><a href="https://i.stack.imgur.com/TGMFi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TGMFi.png" alt="enter image description here" /></a></p>
  <h3>2 Try to use python library to solve this problem.</h3>
  <p>I use PIL, but it comes with a knotty problem. The frame extracted lost many details with white edges.</p>
  <p><a href="https://i.stack.imgur.com/X8Fuo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X8Fuo.png" alt="enter image description here" /></a></p>
  <p><strong>So I want to ask what is the algorithm EZGif take, and how to implement it with python?</strong></p>