Closed inerplat closed 4 years ago
It is a serious error when considering deployment, but can be tolerated in the proof of concept.🤔
It will be fixed later to analyze file header.🧚♀️
New Features: Using the first frame of the gif
image
The first frame of the gif
image could be converted to numpy.ndarray
using the pillow library. Therefore, gif
image can be used to process the same as the existing jpg file.
get mime using python-magic
If the file extension differs from the contents of the actual file, an error occurs. Don't trust the extension when using file.
ex) '.bmp' image file has '.jpg' extension, you can open this file on image viewer(windows default) but your code makes error