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:
import sys, os, re ,fnmatch
import numpy as np
import cv2
import matplotlib.pyplot as plt
And that's it. The problem is, that one of the images I'm testing on is a GIF:
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.
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?