def convert_blender_file_format(extension):
    """ Converts a blender format like JPEG to an extension like .jpeg """

    extensions = {
        "BMP": ".bmp",
        "PNG": ".png",
        "JPEG": ".jpg",
        "TARGA": ".tga",
        "TIFF": ".tiff"
    }

    if extension in extensions:
        return extensions[extension]

    # In case we can't find the extension, return png
    print("Warning: Unkown blender file format:", extension)
    return ".png"