def is_compressed_filetype(filepath):
    """
    Use to check if we should compress files in a zip.
    """
    import os
    assert isinstance(filepath, bytes)
    return os.path.splitext(filepath)[1].lower() in {b'.exr', b'.jpg',
        b'.jpeg', b'.png', b'.aif', b'.aiff', b'.mp3', b'.ogg', b'.ogv',
        b'.wav', b'.avi', b'.mkv', b'.mov', b'.mpg', b'.mpeg'}
