This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import os | |
import time | |
import exifread # https://pypi.org/project/ExifRead/ | |
import ffmpeg # https://pypi.org/project/python-ffmpeg/ | |
def is_picture(file): | |
''' Returns True if the file is an image. ''' | |
extension = os.path.splitext(file)[1] |