diff --git a/docx2txt/docx2txt.py b/docx2txt/docx2txt.py index 0dac072..e3126f4 100755 --- a/docx2txt/docx2txt.py +++ b/docx2txt/docx2txt.py @@ -98,7 +98,7 @@ def process(docx, img_dir=None): # extract images for fname in filelist: _, extension = os.path.splitext(fname) - if extension in [".jpg", ".jpeg", ".png", ".bmp"]: + if extension in [".jpg", ".jpeg", ".png", ".bmp", ".gif"]: dst_fname = os.path.join(img_dir, os.path.basename(fname)) with open(dst_fname, "wb") as dst_f: dst_f.write(zipf.read(fname))