import struct


def getPngDimensions(pngFile):
    """Returns png dimensions

    :param pngFile: png file to extract dimensions from
    :type pngFile: `str`_

    :return: A tuple contain the png width,height
    :rtype: `tuple`_
    """

    with open(pngFile, "rb") as f:
        data = f.read()

    w, h = struct.unpack('>LL', data[16:24])
    width = int(w)
    height = int(h)
    return width, height