def getsize(filename):
    """Get size information from a file"""
    f = open(filename, "r")

    line = f.readline()

    # The first line in the file is the metadata, it holds the 3 sizes
    coords = line.split(",")
    width  = int(coords[0])
    height = int(coords[1])
    depth  = int(coords[2])
    f.close()
    return width, height, depth