image-size
image-size is a built-in function in `C source code
'.
(image-size SPEC &optional PIXELS FRAME)
Return the size of image SPEC as pair (WIDTH . HEIGHT).
PIXELS non-nil means return the size in pixels, otherwise return the
size in canonical character units.
FRAME is the frame on which the image will be displayed. FRAME nil
or omitted means use the selected frame.