title: Read a still-image gif into python without using PIL?
body: <p>I'm working on a script to deconstruct an image, and one of the key components is for the script to be as lightweight as possible. So I'm attempting to use as few imports as absolutely possible:</p>
  
  <pre><code>import sys, os, re ,fnmatch
  import numpy as np
  import cv2
  import matplotlib.pyplot as plt
  </code></pre>
  
  <p>And that's it. The problem is, that one of the images I'm testing on is a GIF:</p>
  
  <p><a href="https://i.stack.imgur.com/hM0tI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hM0tI.png" alt="enter image description here"></a>
  which OpenCV doesn't support, and despite searching for a while I can't seem to find a way to read GIFs (or convert them to png) in pure python. </p>
  
  <p>Every solution I can find uses either Pillow or PIL, both of which are way to big, and really, even OpenCV is pushing it. The GIF is a still image. Is there a easy solution here?</p>