Return an image's dimensions
You can use the size property to get the X and Y dimensions of an image:

width, height = bpy.data.images['myImage'].size
# the variables width and height will now contain the pixel size