Pad images to power-of-two dimensions uses PIL to read and pad images so they have dimensions that are exact powers of two, which might be required for some OpenGL texture map implementations.[1] [2]