'Return the integer pixels per inch from *px_per_meter*, defaulting to
96 if *px_per_meter* is zero.'

@staticmethod
def _dpi(px_per_meter):

    if (px_per_meter == 0):
        return 96
    return int(round((px_per_meter * 0.0254)))
