title: How to split a .gif in frames?
body: <p>All the codes I've found give me the same result: a bunch of exact looking frames. Meaning: it gives me a list of the first frame, repeated X number of times. The .gif I'm using has 30 frames, so I get 30 times the first frame, instead of the 30 different frames.</p>
  
  <pre><code>    public static Image[] GetFramesFromAnimatedGIF(Image IMG)
      {
          List&lt;Image&gt; IMGs = new List&lt;Image&gt;();
          int Length = IMG.GetFrameCount(FrameDimension.Time);
  
          for (int i = 0; i &lt; Length; i++)
          {
              IMG.SelectActiveFrame(FrameDimension.Time, i);
              IMGs.Add(IMG);
          }
  
          return IMGs.ToArray();
      }
  </code></pre>
  
  <p>What am I missing? ALL the codes I've looked give the first frame repeated X numbers of times.</p>
  
  <p>This is what is supposed to look (using a webpage). See how each frame is different? </p>
  
  <p><a href="https://i.stack.imgur.com/2xFjV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2xFjV.png" alt="enter image description here"></a></p>
  
  <p>This is what it looks for me after saving every frame inside that array on a folder location (a bunch of equal frames):</p>
  
  <p><a href="https://i.stack.imgur.com/50WWa.png" rel="noreferrer"><img src="https://i.stack.imgur.com/50WWa.png" alt="enter image description here"></a></p>
  
  <p>P.S.: Yes, it's a .gif the image I'm using.</p>
  
  <p>Update: The problem seems to be when I read the file in the OpenFileDialog, as it works if I pass my .gif by code. So how do I read an animated gif in the OpenFileDialong? Thank you.</p>